summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-09-26 08:18:54 -0700
committerNathan Binkert <nate@binkert.org>2008-09-26 08:18:54 -0700
commita053055e1783f25d4e93763f4e6d079a0b656343 (patch)
treed6dbfa499c4d23f4f294ec56416b6977404908ee
parent0309c877f32d415122cfb59960ec41dba54ba3e3 (diff)
downloadgem5-a053055e1783f25d4e93763f4e6d079a0b656343.tar.xz
scons: disable several gcc warnings for swig autogenerated wrapper code.
-rw-r--r--src/SConscript5
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