diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-03-01 18:56:05 +0100 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2018-03-01 18:57:21 +0100 |
commit | ccc5fe4619effd4d7284a2930dfe9b580c478751 (patch) | |
tree | 4ce04d22719e5e05b0aa14ebb86194a3ff9aaca5 | |
parent | f219111631155f22147dd785d36fc8c294de9dad (diff) |
meson: enable more warnings
-rw-r--r-- | meson.build | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 5687663e..03c91d41 100644 --- a/meson.build +++ b/meson.build @@ -125,6 +125,29 @@ if gst_debug_disabled and cc.has_argument('-Wno-unused') add_project_arguments('-Wno-unused', language: 'c') endif +warning_flags = [ + '-Wmissing-declarations', + '-Wmissing-prototypes', + '-Wredundant-decls', + '-Wundef', + '-Wwrite-strings', + '-Wformat', + '-Wformat-security', + '-Winit-self', + '-Wmissing-include-dirs', + '-Waddress', + '-Wno-multichar', + '-Wdeclaration-after-statement', + '-Wvla', + '-Wpointer-arith', +] + +foreach extra_arg : warning_flags + if cc.has_argument (extra_arg) + add_project_arguments([extra_arg], language: 'c') + endif +endforeach + configinc = include_directories('.') subdir('ges') subdir('plugins') |