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

[libvirt PATCH RFC 17/19] src: internal: add VIR_WARNINGS_NO_DECLARATION_AFTER_STATEMENT



Add a macro to suppress the warning.

Signed-off-by: Ján Tomko <jtomko redhat com>
---
 src/internal.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/internal.h b/src/internal.h
index 3aa3c6ca67..d95db330b3 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -194,6 +194,10 @@
     _Pragma ("GCC diagnostic push") \
     _Pragma ("GCC diagnostic ignored \"-Wunused-variable\"")
 
+#define VIR_WARNINGS_NO_DECLARATION_AFTER_STATEMENT \
+    _Pragma ("GCC diagnostic push") \
+    _Pragma ("GCC diagnostic ignored \"-Wdeclaration-after-statement\"")
+
 #define VIR_WARNINGS_RESET \
     _Pragma ("GCC diagnostic pop")
 
-- 
2.26.2


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