[libvirt PATCH 19/19] build: add -Wdeclaration-after-statement

Ján Tomko jtomko at redhat.com
Mon Aug 3 16:56:56 UTC 2020


Now that all the users have been converted or silenced,
let's enable this warning.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 48b937d6bb..fe75718cac 100644
--- a/meson.build
+++ b/meson.build
@@ -236,6 +236,7 @@ cc_flags += [
   '-Wcpp',
   '-Wdangling-else',
   '-Wdate-time',
+  '-Wdeclaration-after-statement',
   '-Wdeprecated-declarations',
   '-Wdesignated-init',
   '-Wdiscarded-array-qualifiers',
@@ -555,7 +556,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.26.2




More information about the libvir-list mailing list