Fix clang compiler warning
authorClaire Wolf <claire@symbioticeda.com>
Fri, 8 May 2020 08:13:39 +0000 (10:13 +0200)
committerClaire Wolf <claire@symbioticeda.com>
Fri, 8 May 2020 08:13:39 +0000 (10:13 +0200)
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
kernel/yosys.h

index 62f76a63fe6c6f24f853ec6d42b0ce052a2a6497..c922faf26848075049401853579d55dfee534e60 100644 (file)
@@ -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