aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript9
1 files changed, 5 insertions, 4 deletions
diff --git a/wscript b/wscript
index f7441d9..81e682d 100644
--- a/wscript
+++ b/wscript
@@ -61,12 +61,13 @@ def configure(conf):
if Options.options.ultra_strict and 'clang' in conf.env.CC:
for var in ['CFLAGS', 'CXXFLAGS']:
- conf.env[var] = [f for f in conf.env[var] if not f.startswith('-W')]
+ flags = conf.env[var]
+ conf.env[var] = [f for f in flags if not f.startswith('-W')]
conf.env.append_value(var, [
'-Weverything',
'-Wno-bad-function-cast',
- '-Wno-documentation', # Cairo
- '-Wno-documentation-unknown-command', # Cairo
+ '-Wno-documentation', # Cairo
+ '-Wno-documentation-unknown-command', # Cairo
'-Wno-double-promotion',
'-Wno-float-equal',
'-Wno-format-nonliteral',
@@ -74,7 +75,7 @@ def configure(conf):
'-Wno-reserved-id-macro',
'-Wno-sign-conversion',
'-Wno-switch-enum',
- '-Wno-unused-macros', # GL_SILENCE_DEPRECATION
+ '-Wno-unused-macros', # GL_SILENCE_DEPRECATION
])
conf.env.append_value('CXXFLAGS', ['-Wno-c++98-compat',