]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: add -Wdeclaration-after-statement
authorJán Tomko <jtomko@redhat.com>
Mon, 27 Jul 2020 20:49:55 +0000 (22:49 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 25 Aug 2020 17:03:13 +0000 (19:03 +0200)
Now that all the users have been converted or silenced,
let's enable this warning.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
meson.build

index 35e3da6e5599b153d632e3a231a0649c7ba19b47..dabd4196e6d64b1fea5740d17d1736f1f7c19860 100644 (file)
@@ -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',