From: Ján Tomko Date: Mon, 27 Jul 2020 20:49:55 +0000 (+0200) Subject: build: add -Wdeclaration-after-statement X-Git-Tag: v6.7.0-rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ba4838a18afb609d900190c57b0cbfb842ccbdf;p=thirdparty%2Flibvirt.git build: add -Wdeclaration-after-statement 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 --- 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',