summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/SConscript')
-rwxr-xr-xsrc/SConscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SConscript b/src/SConscript
index f5b082819..88fedbfdc 100755
--- a/src/SConscript
+++ b/src/SConscript
@@ -940,6 +940,14 @@ def makeEnv(env, label, objsfx, strip = False, **kwargs):
# with non-virtual destructors
new_env.Append(CXXFLAGS=['-Wdelete-non-virtual-dtor'])
+ swig_env.Append(CCFLAGS=[
+ # Some versions of SWIG can return uninitialized values
+ '-Wno-sometimes-uninitialized',
+ # Register storage is requested in a lot of places in
+ # SWIG-generated code.
+ '-Wno-deprecated-register',
+ ])
+
werror_env = new_env.Clone()
werror_env.Append(CCFLAGS='-Werror')