From ccc5fe4619effd4d7284a2930dfe9b580c478751 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 1 Mar 2018 18:56:05 +0100 Subject: [PATCH] meson: enable more warnings --- meson.build | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/meson.build b/meson.build index 5687663..03c91d4 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') -- 2.7.4