summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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