From: Nathan Binkert Date: Fri, 26 Sep 2008 15:18:54 +0000 (-0700) Subject: scons: disable several gcc warnings for swig autogenerated wrapper code. X-Git-Tag: m5_2.0_beta6~29 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a053055e1783f25d4e93763f4e6d079a0b656343;p=gem5.git scons: disable several gcc warnings for swig autogenerated wrapper code. --- 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