Unverified Commit 3a90ea99 authored by 某10's avatar 某10 Committed by GitHub
Browse files

Add GNUC minor version check for redis_unreachable (#11882)

__builtin_unreachable is added for the first time in GCC 4.5
parent bfe50a30
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
#endif #endif
#endif #endif
#if __GNUC__ >= 4 #if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
#define redis_unreachable __builtin_unreachable #define redis_unreachable __builtin_unreachable
#else #else
#define redis_unreachable abort #define redis_unreachable abort
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment