From a053055e1783f25d4e93763f4e6d079a0b656343 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 26 Sep 2008 08:18:54 -0700 Subject: [PATCH] scons: disable several gcc warnings for swig autogenerated wrapper code. --- src/SConscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SConscript b/src/SConscript index 9734a3618..14988bbbe 100644 --- a/src/SConscript +++ b/src/SConscript @@ -947,7 +947,10 @@ def makeEnv(label, objsfx, strip = False, **kwargs): newEnv.Append(**kwargs) swig_env = newEnv.Copy() - swig_env.Append(CCFLAGS='-Wno-uninitialized') + if env['GCC']: + swig_env.Append(CCFLAGS='-Wno-uninitialized') + swig_env.Append(CCFLAGS='-Wno-sign-compare') + swig_env.Append(CCFLAGS='-Wno-parentheses') swig_objs = [ swig_env.Object(s) for s in cc_swig_sources ] # First make a library of everything but main() so other programs can -- 2.30.2