From 8ec3b6db1c07cc157fdf2955ed5daefb22126cf2 Mon Sep 17 00:00:00 2001 From: Claire Wolf Date: Fri, 8 May 2020 10:13:39 +0200 Subject: [PATCH] Fix clang compiler warning Signed-off-by: Claire Wolf --- kernel/yosys.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2