[PATCH 5/8] Document the ATTRIBUTE_FALLTHROUGH macro

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

 



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

diff --git a/src/internal.h b/src/internal.h
index 0825e63993..1f70123e47 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -135,6 +135,13 @@
 # endif
 #endif
 
+/**
+ *
+ * ATTRIBUTE_FALLTHROUGH
+ *
+ * silence the compiler warning when falling through a switch case
+ *
+ */
 #ifndef ATTRIBUTE_FALLTHROUGH
 # if __GNUC_PREREQ (7, 0)
 #  define ATTRIBUTE_FALLTHROUGH __attribute__((fallthrough))
-- 
2.19.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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