aboutsummaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 13:36:51 +0200
committerDavid Robillard <d@drobilla.net>2019-07-28 15:01:26 +0200
commite7236e4a5ff6e7d28792d6ab8bee43c2024a9a53 (patch)
tree4f8808389f468107fe41abe0da4b6698650cb413 /wscript
parent4c4b388fab18b12c0cc915238f844eb78b9ff21d (diff)
Fix unused parameter warnings and prevent rot
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/wscript b/wscript
index 99c2fad..d0697c2 100644
--- a/wscript
+++ b/wscript
@@ -45,6 +45,10 @@ def configure(conf):
elif conf.env.TARGET_PLATFORM == 'darwin':
conf.env.append_unique('CFLAGS', ['-Wno-deprecated-declarations'])
+ if Options.options.strict and not conf.env.MSVC_COMPILER:
+ conf.env.append_value('CFLAGS', ['-Wunused-parameter'])
+ conf.env.append_value('CXXFLAGS', ['-Wunused-parameter'])
+
autowaf.set_c_lang(conf, 'c99')
if not Options.options.no_gl: