]> xenbits.xensource.com Git - libvirt.git/commitdiff
Document the ATTRIBUTE_FALLTHROUGH macro
authorJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2019 11:36:47 +0000 (13:36 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2019 14:14:19 +0000 (16:14 +0200)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/internal.h

index 0825e63993c8d307b5eb7c8f2ee0255072423b75..1f70123e47d19cabe869d9a1e12f8ae997fb87d6 100644 (file)
 # 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))