summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-15 20:11:10 +0200
committerDavid Robillard <d@drobilla.net>2020-07-16 12:13:26 +0200
commit6b144cf24e263ab0389473211a627c0272bc4173 (patch)
tree0d653b7fce9ed37b76f1b4b8971f84a90fe7283f
parent2f3ce76e9672ef7c21d6abe0baec18c626af539f (diff)
downloadsratom-6b144cf24e263ab0389473211a627c0272bc4173.tar.gz
sratom-6b144cf24e263ab0389473211a627c0272bc4173.tar.bz2
sratom-6b144cf24e263ab0389473211a627c0272bc4173.zip
Be explicit about warnings
m---------waflib0
-rw-r--r--wscript26
2 files changed, 25 insertions, 1 deletions
diff --git a/waflib b/waflib
-Subproject 0bde0c2e022c479b8c7e3933eca0cbc01282562
+Subproject 8b67c693005e5d3ca9a6e0d5ed0613392fcec62
diff --git a/wscript b/wscript
index e7d8f67..e05ac66 100644
--- a/wscript
+++ b/wscript
@@ -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')