diff --git a/src/common.h b/src/common.h index 359bbbb..63ae96f 100644 --- a/src/common.h +++ b/src/common.h @@ -76,7 +76,7 @@ typedef unsigned long ulong; # define DIAG_DISABLE(text) #endif -#if __GNUC__ >= 7 +#if __GNUC__ >= 7 || defined(__clang__) # define FALLTHROUGH __attribute__((fallthrough)); #else # define FALLTHROUGH