Add GNUC minor version check for redis_unreachable (#11882)

__builtin_unreachable is added for the first time in GCC 4.5
This commit is contained in:
某10 2023-03-05 21:28:50 +08:00 committed by GitHub
parent bfe50a30ed
commit 3a90ea998c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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