aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPierre Langlois <pierre.langlois@arm.com>2018-05-14 11:10:02 +0100
committerPierre Langlois <pierre.langlois@arm.com>2018-05-14 13:42:53 +0100
commitc6d364feae3b805986dcc7015227436bdb4fb354 (patch)
tree9902af1173d97d1e0de1412f6a416a91a0e95c64 /src
parentd8bb357091538ce9c84518eea4bc0792e10c417a (diff)
Enable __attribute__((fallthrough)) for GCC 8 and higher.
Change-Id: I1989bbd294e9d6bf67f413582a81802eeb1f4205
Diffstat (limited to 'src')
-rw-r--r--src/globals-vixl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/globals-vixl.h b/src/globals-vixl.h
index a1801c3f..4a82f8e3 100644
--- a/src/globals-vixl.h
+++ b/src/globals-vixl.h
@@ -208,8 +208,8 @@ inline void USE(const T1&, const T2&, const T3&, const T4&) {}
#if __has_warning("-Wimplicit-fallthrough") && __cplusplus >= 201103L
#define VIXL_FALLTHROUGH() [[clang::fallthrough]]
// Fallthrough annotation for GCC >= 7.
-#elif __GNUC__ == 7
-#define VIXL_FALLTHROUGH() __attribute__((fallthrough));
+#elif __GNUC__ >= 7
+#define VIXL_FALLTHROUGH() __attribute__((fallthrough))
#else
#define VIXL_FALLTHROUGH() \
do { \