diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-09-23 19:29:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-23 16:29:02 -0700 |
| commit | b986fd96bc8d9ef8739efd9c5c4221f04a2c3463 (patch) | |
| tree | 720cad58d9d54d9017cb179a623791f4328c7dea /src/nvim/lua/executor.c | |
| parent | d2257402e310806617450d57b3d133108ebb20b9 (diff) | |
| download | rneovim-b986fd96bc8d9ef8739efd9c5c4221f04a2c3463.tar.gz rneovim-b986fd96bc8d9ef8739efd9c5c4221f04a2c3463.tar.bz2 rneovim-b986fd96bc8d9ef8739efd9c5c4221f04a2c3463.zip | |
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.
Diffstat (limited to 'src/nvim/lua/executor.c')
| -rw-r--r-- | src/nvim/lua/executor.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index 6965492690..54b36d06d8 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -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) |