diff options
author | 某10 <0w0@0w0.pw> | 2023-03-05 21:28:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 15:28:50 +0200 |
commit | 3a90ea998c5bf56270227dff4f54a014b6522de7 (patch) | |
tree | d0d9fd5f4f21be6017705811a3d9910ec4c3cfa7 | |
parent | bfe50a30edff6837897964ac3374c082b0d9e5da (diff) | |
download | redis-3a90ea998c5bf56270227dff4f54a014b6522de7.tar.gz |
Add GNUC minor version check for redis_unreachable (#11882)
__builtin_unreachable is added for the first time in GCC 4.5
-rw-r--r-- | src/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h index 62b8bf60b..c3d80c831 100644 --- a/src/config.h +++ b/src/config.h @@ -131,7 +131,7 @@ #endif #endif -#if __GNUC__ >= 4 +#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) #define redis_unreachable __builtin_unreachable #else #define redis_unreachable abort |