diff options
author | David Robillard <d@drobilla.net> | 2020-07-17 20:05:43 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-17 20:44:52 +0200 |
commit | 491a24226a29ffb1be312a59d1f07796e183e4ae (patch) | |
tree | 43e2752695a1b97ed66ca46c2373bdd33fbe6f89 | |
parent | d44254fff0387e0c623715a368d43e3e191b7765 (diff) | |
download | raul-491a24226a29ffb1be312a59d1f07796e183e4ae.tar.gz raul-491a24226a29ffb1be312a59d1f07796e183e4ae.tar.bz2 raul-491a24226a29ffb1be312a59d1f07796e183e4ae.zip |
Be explicit about warnings
m--------- | waflib | 0 | ||||
-rw-r--r-- | wscript | 22 |
2 files changed, 21 insertions, 1 deletions
diff --git a/waflib b/waflib -Subproject c87cc53c643c60867665b333d5999fe07196d54 +Subproject 116a28fa5f92e58a46dc878751019ba74a61e54 @@ -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'] |