scons: disable several gcc warnings for swig autogenerated wrapper code.
authorNathan Binkert <nate@binkert.org>
Fri, 26 Sep 2008 15:18:54 +0000 (08:18 -0700)
committerNathan Binkert <nate@binkert.org>
Fri, 26 Sep 2008 15:18:54 +0000 (08:18 -0700)
src/SConscript

index 9734a3618b41ce14c2c8c72e34f97e1a54d8349e..14988bbbe14fdfff80e42ec05d0b3d639f8069f3 100644 (file)
@@ -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