diff options
author | David Robillard <d@drobilla.net> | 2020-07-15 20:11:10 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-16 12:13:26 +0200 |
commit | 6b144cf24e263ab0389473211a627c0272bc4173 (patch) | |
tree | 0d653b7fce9ed37b76f1b4b8971f84a90fe7283f /wscript | |
parent | 2f3ce76e9672ef7c21d6abe0baec18c626af539f (diff) | |
download | sratom-6b144cf24e263ab0389473211a627c0272bc4173.tar.gz sratom-6b144cf24e263ab0389473211a627c0272bc4173.tar.bz2 sratom-6b144cf24e263ab0389473211a627c0272bc4173.zip |
Be explicit about warnings
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -10,7 +10,7 @@ from waflib.extras import autowaf # major increment <=> incompatible changes # minor increment <=> compatible changes (additions) # micro increment <=> no interface changes -SRATOM_VERSION = '0.6.4' +SRATOM_VERSION = '0.6.5' SRATOM_MAJOR_VERSION = '0' # Mandatory waf variables @@ -42,6 +42,30 @@ def configure(conf): if not conf.env.BUILD_SHARED and not conf.env.BUILD_STATIC: conf.fatal('Neither a shared nor a static build requested') + if Options.options.ultra_strict: + autowaf.add_compiler_flags(conf.env, 'c', { + 'gcc': [ + '-Wno-cast-align', + '-Wno-cast-qual', + '-Wno-conversion', + '-Wno-padded', + ], + 'clang': [ + '-Wno-cast-align', + '-Wno-cast-qual', + '-Wno-double-promotion', + '-Wno-float-conversion', + '-Wno-implicit-float-conversion', + '-Wno-implicit-int-conversion', + '-Wno-padded', + '-Wno-shorten-64-to-32', + '-Wno-sign-conversion', + ], + 'msvc': [ + '/wd4242' # conversion with possible loss of data + ] + }) + conf.check_pkg('lv2 >= 1.16.0', uselib_store='LV2') conf.check_pkg('serd-0 >= 0.30.0', uselib_store='SERD') conf.check_pkg('sord-0 >= 0.14.0', uselib_store='SORD') |