From 4742cd5bbe40c071bc0b0caa9a5ab622ba642d99 Mon Sep 17 00:00:00 2001 From: PragmaTwice Date: Wed, 22 Jun 2022 23:29:50 +0800 Subject: [PATCH] add __builtin_unreachable to raiseError to make compiler happy --- src/scripting.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripting.cc b/src/scripting.cc index c84c81484ea..675e82920c7 100644 --- a/src/scripting.cc +++ b/src/scripting.cc @@ -779,7 +779,8 @@ std::string replyToRedisReply(lua_State *lua) { [[noreturn]] int raiseError(lua_State *lua) { lua_pushstring(lua, "err"); lua_gettable(lua, -2); - return lua_error(lua); + lua_error(lua); + __builtin_unreachable(); } /* Sort the array currently in the stack. We do this to make the output