scons: disable several gcc warnings for swig autogenerated wrapper code.
This commit is contained in:
parent
0309c877f3
commit
a053055e17
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue