summaryrefslogtreecommitdiffstats
path: root/src/digest.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-02-02 22:06:16 -0500
committerDavid Robillard <d@drobilla.net>2022-02-02 22:06:16 -0500
commit1092cf668d1155830601db2e230835fe1a0ddc95 (patch)
tree9243c9dee2f50a777c9bf4576a113b8e5d4034e9 /src/digest.c
parente23804f01f93d2e21259d6aa1cec2853e625790c (diff)
downloadzix-1092cf668d1155830601db2e230835fe1a0ddc95.tar.gz
zix-1092cf668d1155830601db2e230835fe1a0ddc95.tar.bz2
zix-1092cf668d1155830601db2e230835fe1a0ddc95.zip
Avoid fallthrough annotation on older GCC versions
Diffstat (limited to 'src/digest.c')
-rw-r--r--src/digest.c2
1 files changed, 1 insertions, 1 deletions
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()