From 3a90ea998c5bf56270227dff4f54a014b6522de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=9010?= <0w0@0w0.pw> Date: Sun, 5 Mar 2023 21:28:50 +0800 Subject: [PATCH] Add GNUC minor version check for redis_unreachable (#11882) __builtin_unreachable is added for the first time in GCC 4.5 --- src/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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