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

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

 



Add a macro to suppress the warning.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux