mirror of https://gitee.com/openkylin/libvirt.git
Document the ATTRIBUTE_FALLTHROUGH macro
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
da367c0f9b
commit
dd3738acc4
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue