diff options
Diffstat (limited to 'firmware/2lib/include/2common.h')
-rw-r--r-- | firmware/2lib/include/2common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/2lib/include/2common.h b/firmware/2lib/include/2common.h index dbc62643..0d66458f 100644 --- a/firmware/2lib/include/2common.h +++ b/firmware/2lib/include/2common.h @@ -84,6 +84,13 @@ struct vb2_public_key; #endif #endif +#if (defined(__GNUC__) && __GNUC__ >= 7) || \ + (defined(__clang__) && __has_attribute(fallthrough)) +#define VBOOT_FALLTHROUGH __attribute__((fallthrough)) +#else +#define VBOOT_FALLTHROUGH ((void)0) +#endif + /** * Round up a number to a multiple of VB2_WORKBUF_ALIGN * |