toolchain: gcc: Add macro to fallthrough attribute
This macro is intended to be used in intentional fallthroughs on switch / case statements. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
680f401ef2
commit
f0ec286759
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ do { \
|
||||||
__attribute__((long_call, section(".ramfunc")))
|
__attribute__((long_call, section(".ramfunc")))
|
||||||
#endif /* !CONFIG_XIP */
|
#endif /* !CONFIG_XIP */
|
||||||
|
|
||||||
|
#ifndef __fallthrough
|
||||||
|
#define __fallthrough __attribute__((fallthrough))
|
||||||
|
#endif
|
||||||
#ifndef __packed
|
#ifndef __packed
|
||||||
#define __packed __attribute__((__packed__))
|
#define __packed __attribute__((__packed__))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue