From c2f0c7bce052af6107dfe676b956b60550786c56 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sat, 6 Feb 2016 17:54:45 +0000 Subject: Revert "giscanner: Disable warnings arising from -D_FORTIFY_SOURCE -O0" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 file changed, 6 deletions(-) diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py index 574f40cb..9b27f0e1 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) -- cgit v1.2.1