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:
Flavio Ceolin 2020-08-19 09:13:39 -07:00 committed by Anas Nashif
commit f0ec286759

View file

@ -165,6 +165,9 @@ do { \
__attribute__((long_call, section(".ramfunc")))
#endif /* !CONFIG_XIP */
#ifndef __fallthrough
#define __fallthrough __attribute__((fallthrough))
#endif
#ifndef __packed
#define __packed __attribute__((__packed__))
#endif