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 15:28:50 +02:00
committed by GitHub
parent bfe50a30ed
commit 3a90ea998c
+1 -1
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