From: Ján Tomko Date: Tue, 15 Oct 2019 11:36:47 +0000 (+0200) Subject: Document the ATTRIBUTE_FALLTHROUGH macro X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dd3738acc409dd7a6ca88e56c9958d2e2ee5d62f;p=libvirt.git Document the ATTRIBUTE_FALLTHROUGH macro Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- 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))