aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClaire Wolf <claire@symbioticeda.com>2020-05-08 10:13:39 +0200
committerClaire Wolf <claire@symbioticeda.com>2020-05-08 10:13:39 +0200
commit8ec3b6db1c07cc157fdf2955ed5daefb22126cf2 (patch)
treea21f1a85d06edc8539812a5b9000e77fd749d11a /kernel
parentebfdf61eb9703a16f949470f98509fdb405adf8f (diff)
downloadyosys-8ec3b6db1c07cc157fdf2955ed5daefb22126cf2.tar.gz
yosys-8ec3b6db1c07cc157fdf2955ed5daefb22126cf2.tar.bz2
yosys-8ec3b6db1c07cc157fdf2955ed5daefb22126cf2.zip
Fix clang compiler warning
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/yosys.h4
1 files 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