mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
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…
x
Reference in New Issue
Block a user