meson: enable more warnings

This commit is contained in:
Wim Taymans 2019-01-07 18:02:36 +01:00
parent 19e4b04939
commit 44cb131269

View file

@ -1,5 +1,6 @@
project('pipewire', 'c',
version : '0.2.9',
license : 'MIT',
meson_version : '>= 0.42.0',
default_options : [ 'warning_level=1',
'c_std=gnu99',
@ -38,6 +39,9 @@ pkgconfig = import('pkgconfig')
cc = meson.get_compiler('c')
if cc.get_id() == 'gcc'
add_global_arguments('-Wsign-compare', '-Wimplicit-fallthrough', language : 'c')
endif
cdata = configuration_data()
cdata.set('PIPEWIRE_VERSION_MAJOR', pipewire_version_major)