scons: disable several gcc warnings for swig autogenerated wrapper code.

This commit is contained in:
Nathan Binkert 2008-09-26 08:18:54 -07:00
parent 0309c877f3
commit a053055e17

View 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