1
0
mirror of synced 2026-05-04 07:10:19 +00:00

Merge pull request #2022 from Xiretza/fallthroughs

Avoid switch fall-through warnings
This commit is contained in:
whitequark
2020-05-08 05:30:32 +00:00
committed by GitHub
5 changed files with 26 additions and 9 deletions

View File

@@ -155,6 +155,16 @@ extern Tcl_Obj *Tcl_ObjSetVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *p
# define YS_NORETURN
#endif
#if __cplusplus >= 201703L
# define YS_FALLTHROUGH [[fallthrough]];
#elif defined(__GNUC__)
# define YS_FALLTHROUGH [[gnu::fallthrough]];
#elif defined(__clang__)
# define YS_FALLTHROUGH [[clang::fallthrough]];
#else
# define YS_FALLTHROUGH
#endif
YOSYS_NAMESPACE_BEGIN
// Note: All headers included in hashlib.h must be included