forked from wolfSSL/wolfssl
Fix minimum clang version for FALL_THROUGH. Not working properly before clang 11.
This commit is contained in:
@@ -316,7 +316,7 @@ decouple library dependencies with standard string, memory and so on.
|
||||
#elif ((__GNUC__ > 7) || ((__GNUC__ == 7) && (__GNUC_MINOR__ >= 1)))
|
||||
#define FALL_THROUGH ; __attribute__ ((fallthrough))
|
||||
#elif defined(__clang__) && defined(__clang_major__) && \
|
||||
(__clang_major__ >= 4)
|
||||
(__clang_major__ >= 11)
|
||||
#define FALL_THROUGH ; __attribute__ ((fallthrough))
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user