diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-01-07 18:02:36 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-01-07 18:02:36 +0100 |
commit | 44cb131269b476992f7448057b464dcff34a3de3 (patch) | |
tree | 42bb8e735c2eb51235d44feeb28ee6b074199998 /meson.build | |
parent | 19e4b04939175a29ee46a128c64ed1546929a74e (diff) |
meson: enable more warnings
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index a4dc6f0e..9c2f1f79 100644 --- a/meson.build +++ b/meson.build @@ -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) |