diff options
author | David Robillard <d@drobilla.net> | 2020-07-21 20:45:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-21 20:47:19 +0200 |
commit | 458b92a89e8014fec4c70b0f982651e1c74ed79f (patch) | |
tree | 01412137c67277f721bf648fb3c6ca9ef2101597 | |
parent | 00f610655dd00dd171a7ce14a85db14a2bfcaf3b (diff) | |
download | patchage-458b92a89e8014fec4c70b0f982651e1c74ed79f.tar.gz patchage-458b92a89e8014fec4c70b0f982651e1c74ed79f.tar.bz2 patchage-458b92a89e8014fec4c70b0f982651e1c74ed79f.zip |
Be explicit about warnings
-rw-r--r-- | wscript | 58 |
1 files changed, 58 insertions, 0 deletions
@@ -50,6 +50,64 @@ def configure(conf): conf.load('autowaf', cache=True) autowaf.set_cxx_lang(conf, 'c++11') + if Options.options.ultra_strict: + autowaf.add_compiler_flags(conf.env, '*', { + 'clang': [ + '-Wno-alloca', + '-Wno-cast-qual', + '-Wno-covered-switch-default', + '-Wno-documentation-unknown-command', + '-Wno-double-promotion', + '-Wno-float-conversion', + '-Wno-float-equal', + '-Wno-implicit-float-conversion', + '-Wno-padded', + '-Wno-pedantic', + '-Wno-shadow', + '-Wno-shorten-64-to-32', + '-Wno-sign-conversion', + '-Wno-stack-protector', + '-Wno-unused-parameter', + ], + 'gcc': [ + '-Wno-alloca', + '-Wno-conversion', + '-Wno-float-equal', + '-Wno-padded', + '-Wno-pedantic', + '-Wno-shadow', + '-Wno-stack-protector', + '-Wno-unused-parameter', + ], + }) + + autowaf.add_compiler_flags(conf.env, 'c', { + 'clang': [ + '-Wno-bad-function-cast', + '-Wno-missing-noreturn', + ], + 'gcc': [ + '-Wno-bad-function-cast', + '-Wno-c++-compat', + ], + }) + + autowaf.add_compiler_flags(conf.env, 'cxx', { + 'clang': [ + '-Wno-deprecated-copy', + '-Wno-extra-semi-stmt', + '-Wno-old-style-cast', + '-Wno-weak-vtables', + '-Wno-zero-as-null-pointer-constant', + ], + 'gcc': [ + '-Wno-conditionally-supported', + '-Wno-effc++', + '-Wno-old-style-cast', + '-Wno-suggest-override', + ], + }) + conf.check_pkg('dbus-1', uselib_store='DBUS', system=True, |