[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt PATCH 19/19] 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 <jtomko 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]