summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-15 17:24:49 +0200
committerDavid Robillard <d@drobilla.net>2020-07-16 23:37:49 +0200
commit8ad1fef18a1573bd8f8818a20b3c8d4708b42cc3 (patch)
tree975e5f0a5b0ca319fbd100820e32ff41b1c02812
parent9bf2b87029dda57fffca354162d58ee6a6db20e3 (diff)
downloadlilv-8ad1fef18a1573bd8f8818a20b3c8d4708b42cc3.tar.gz
lilv-8ad1fef18a1573bd8f8818a20b3c8d4708b42cc3.tar.bz2
lilv-8ad1fef18a1573bd8f8818a20b3c8d4708b42cc3.zip
Be explicit about warnings
m---------waflib0
-rw-r--r--wscript58
2 files changed, 58 insertions, 0 deletions
diff --git a/waflib b/waflib
-Subproject 4fbcf65393abb1472c75bd8006a6c58d304c18d
+Subproject 8b67c693005e5d3ca9a6e0d5ed0613392fcec62
diff --git a/wscript b/wscript
index 0fb3e94..6b40563 100644
--- a/wscript
+++ b/wscript
@@ -113,6 +113,64 @@ 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, '*', {
+ 'clang': [
+ '-Wno-documentation-unknown-command',
+ ]
+ })
+
+ autowaf.add_compiler_flags(conf.env, 'c', {
+ 'clang': [
+ '-Wno-cast-align',
+ '-Wno-cast-qual',
+ '-Wno-double-promotion',
+ '-Wno-float-equal',
+ '-Wno-format-nonliteral',
+ '-Wno-implicit-float-conversion',
+ '-Wno-implicit-int-conversion',
+ '-Wno-padded',
+ '-Wno-reserved-id-macro',
+ '-Wno-shorten-64-to-32',
+ '-Wno-sign-conversion',
+ '-Wno-switch-enum',
+ '-Wno-unused-parameter',
+ '-Wno-vla',
+ ],
+ 'gcc': [
+ '-Wno-cast-align',
+ '-Wno-cast-qual',
+ '-Wno-conversion',
+ '-Wno-double-promotion',
+ '-Wno-float-equal',
+ '-Wno-padded',
+ '-Wno-stack-protector',
+ '-Wno-switch-enum',
+ '-Wno-unused-parameter',
+ '-Wno-vla',
+ ],
+ 'msvc': [
+ '/wd4061', # enumerator in switch is not explicitly handled
+ '/wd4365', # signed/unsigned mismatch
+ '/wd4514', # unreferenced inline function has been removed
+ '/wd4774', # format string is not a string literal
+ '/wd4820', # padding added after construct
+ '/wd4996', # POSIX name for this item is deprecated
+ ],
+ })
+
+ autowaf.add_compiler_flags(conf.env, 'cxx', {
+ 'clang': [
+ '-Wno-extra-semi',
+ '-Wno-zero-as-null-pointer-constant',
+ ],
+ 'gcc': [
+ '-Wno-effc++',
+ '-Wno-extra-semi',
+ '-Wno-pedantic',
+ ],
+ })
+
conf.check_pkg('lv2 >= 1.18.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')