From 491a24226a29ffb1be312a59d1f07796e183e4ae Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 17 Jul 2020 20:05:43 +0200 Subject: Be explicit about warnings --- wscript | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 872278d..43758a8 100644 --- a/wscript +++ b/wscript @@ -26,9 +26,29 @@ def options(opt): def configure(conf): conf.load('compiler_cxx', cache=True) conf.load('autowaf', cache=True) - autowaf.set_c_lang(conf, 'c99') autowaf.set_cxx_lang(conf, 'c++11') + if Options.options.ultra_strict: + autowaf.add_compiler_flags(conf.env, 'cxx', { + 'clang': [ + '-Wno-padded', + '-Wno-weak-vtables', + ], + 'gcc': [ + '-Wno-multiple-inheritance', + '-Wno-padded', + '-Wno-useless-cast', + ], + 'msvc': [ + '/wd4514', # unreferenced inline function removed + '/wd4625', # copy constructor implicitly deleted + '/wd4626', # assignment operator implicitly deleted + '/wd4706', # assignment within conditional expression + '/wd5026', # move constructor implicitly deleted + '/wd5027', # move assignment operator implicitly deleted + ] + }) + if conf.env.DEST_OS == 'darwin': conf.check(framework_name='CoreServices') conf.env.FRAMEWORK_RAUL = ['CoreServices'] -- cgit v1.2.1