[gobject-introspection] Revert "giscanner: Disable warnings arising from -D_FORTIFY_SOURCE -O0"



commit c2f0c7bce052af6107dfe676b956b60550786c56
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Feb 6 17:54:45 2016 +0000

    Revert "giscanner: Disable warnings arising from -D_FORTIFY_SOURCE -O0"
    
    This reverts commit 0ff7ca94a608663649defc72021062de098853a8.
    
    As reported by Ting-Wei Lan, this breaks builds with Clang, which
    doesn’t support -Wno-cpp.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757934#c5

 giscanner/ccompiler.py |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 574f40c..9b27f0e 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -229,12 +229,6 @@ class CCompiler(object):
             extra_postargs.append('-Wall')
         extra_postargs.append(self._cflags_no_deprecation_warnings)
 
-        # Disable warnings from combining _FORTIFY_SOURCE (from
-        # distutils.sysconfig) and -O0 (potentially provided in CFLAGS by the
-        # user).
-        if isinstance(self.compiler, UnixCCompiler):
-            extra_postargs.append('-Wno-cpp')
-
         includes.extend(include_paths)
         extra_postargs.extend(extra_args)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]