From 1092cf668d1155830601db2e230835fe1a0ddc95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 2 Feb 2022 22:06:16 -0500 Subject: Avoid fallthrough annotation on older GCC versions --- src/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/digest.c b/src/digest.c index 8a58784..133f5c0 100644 --- a/src/digest.c +++ b/src/digest.c @@ -9,7 +9,7 @@ #if defined(__clang__) && __clang_major__ >= 12 # define FALLTHROUGH() __attribute__((fallthrough)) -#elif defined(__GNUC__) && !defined(__clang__) +#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 7 # define FALLTHROUGH() __attribute__((fallthrough)) #else # define FALLTHROUGH() -- cgit v1.2.1