diff options
author | Nathan Binkert <nate@binkert.org> | 2008-09-26 08:18:54 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-09-26 08:18:54 -0700 |
commit | a053055e1783f25d4e93763f4e6d079a0b656343 (patch) | |
tree | d6dbfa499c4d23f4f294ec56416b6977404908ee | |
parent | 0309c877f32d415122cfb59960ec41dba54ba3e3 (diff) | |
download | gem5-a053055e1783f25d4e93763f4e6d079a0b656343.tar.xz |
scons: disable several gcc warnings for swig autogenerated wrapper code.
-rw-r--r-- | src/SConscript | 5 |
1 files changed, 4 insertions, 1 deletions
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 |