Browse Source

Be explicit about warnings

zrythm_meson
David Robillard 2 years ago
parent
commit
6b144cf24e
  1. 2
      waflib
  2. 26
      wscript

2
waflib

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 0bde0c2e022c479b8c7e3933eca0cbc012825624
Subproject commit 8b67c693005e5d3ca9a6e0d5ed0613392fcec623

26
wscript

@ -10,7 +10,7 @@ from waflib.extras import autowaf @@ -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): @@ -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')

Loading…
Cancel
Save