fix(lua): coverity "unreachable" warning #35874

Problem:

    CID 584865:         Control flow issues  (UNREACHABLE)
    /src/nvim/lua/executor.c: 550             in nlua_wait()
    >>>     CID 584865:         Control flow issues  (UNREACHABLE)
    >>>     This code cannot be reached: "abort();".
    550       abort();
    551     }

Solution:
The abort() was intended to encourage explicit handling of all cases, to
avoid fallthrough to a possible `return x` added at the end. However,
this is unlikely so just drop it.
This commit is contained in:
Justin M. Keyes
2025-09-23 19:29:02 -04:00
committed by GitHub
parent d2257402e3
commit b986fd96bc

View File

@@ -543,8 +543,6 @@ static int nlua_wait(lua_State *lstate)
lua_pushinteger(lstate, -1);
return 2;
}
abort();
}
static nlua_ref_state_t *nlua_new_ref_state(lua_State *lstate, bool is_thread)