From 7ba4838a18afb609d900190c57b0cbfb842ccbdf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Tomko?= Date: Mon, 27 Jul 2020 22:49:55 +0200 Subject: [PATCH] build: add -Wdeclaration-after-statement MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Now that all the users have been converted or silenced, let's enable this warning. Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 35e3da6e55..dabd4196e6 100644 --- a/meson.build +++ b/meson.build @@ -246,6 +246,7 @@ cc_flags += [ '-Wcpp', '-Wdangling-else', '-Wdate-time', + '-Wdeclaration-after-statement', '-Wdeprecated-declarations', '-Wdesignated-init', '-Wdiscarded-array-qualifiers', @@ -565,7 +566,6 @@ cc_flags_disabled = [ # We might fundamentally need some of these disabled forever, but # ideally we'd turn many of them on '-Wfloat-equal', - '-Wdeclaration-after-statement', '-Wpacked', '-Wunused-macros', '-Woverlength-strings', -- 2.47.2