From e7236e4a5ff6e7d28792d6ab8bee43c2024a9a53 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 Jul 2019 13:36:51 +0200 Subject: Fix unused parameter warnings and prevent rot --- wscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wscript') 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: -- cgit v1.2.1