mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
meson: enable more warnings
This commit is contained in:
parent
19e4b04939
commit
44cb131269
1 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
project('pipewire', 'c',
|
project('pipewire', 'c',
|
||||||
version : '0.2.9',
|
version : '0.2.9',
|
||||||
|
license : 'MIT',
|
||||||
meson_version : '>= 0.42.0',
|
meson_version : '>= 0.42.0',
|
||||||
default_options : [ 'warning_level=1',
|
default_options : [ 'warning_level=1',
|
||||||
'c_std=gnu99',
|
'c_std=gnu99',
|
||||||
|
|
@ -38,6 +39,9 @@ pkgconfig = import('pkgconfig')
|
||||||
|
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
|
if cc.get_id() == 'gcc'
|
||||||
|
add_global_arguments('-Wsign-compare', '-Wimplicit-fallthrough', language : 'c')
|
||||||
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
cdata.set('PIPEWIRE_VERSION_MAJOR', pipewire_version_major)
|
cdata.set('PIPEWIRE_VERSION_MAJOR', pipewire_version_major)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue