Skip to content

Commit

Permalink
add __builtin_unreachable to raiseError to make compiler happy (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice authored Jun 23, 2022
1 parent c790a7a commit c729935
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c729935

Please sign in to comment.