diff --git a/kernel/yosys.h b/kernel/yosys.h index 62f76a63f..c922faf26 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -157,10 +157,10 @@ extern Tcl_Obj *Tcl_ObjSetVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *p #if __cplusplus >= 201703L # define YS_FALLTHROUGH [[fallthrough]]; -#elif defined(__GNUC__) -# define YS_FALLTHROUGH [[gnu::fallthrough]]; #elif defined(__clang__) # define YS_FALLTHROUGH [[clang::fallthrough]]; +#elif defined(__GNUC__) +# define YS_FALLTHROUGH [[gnu::fallthrough]]; #else # define YS_FALLTHROUGH #endif