diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-12-19 21:38:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-19 21:38:07 +0100 |
commit | 115d4da88261d1f464b015622888504a26aef434 (patch) | |
tree | 2d414509672b28434a3a03c9b2902ae328a417ce /src | |
parent | abdf3a8128b78fb98ee944bc5d3086c680d779ed (diff) | |
parent | e0750f3e8acad4f492dedc0fed6a1cfbfa232e8b (diff) | |
download | rneovim-115d4da88261d1f464b015622888504a26aef434.tar.gz rneovim-115d4da88261d1f464b015622888504a26aef434.tar.bz2 rneovim-115d4da88261d1f464b015622888504a26aef434.zip |
Merge pull request #16657 from lewis6991/unused_warn
chore(): suppress -Wunused-but-set-variable warns
Diffstat (limited to 'src')
-rw-r--r-- | src/mpack/lmpack.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mpack/lmpack.c b/src/mpack/lmpack.c index 87acf46592..126f2f3824 100644 --- a/src/mpack/lmpack.c +++ b/src/mpack/lmpack.c @@ -595,6 +595,7 @@ static void lmpack_unparse_enter(mpack_parser_t *parser, mpack_node_t *node) /* push the pair */ result = lua_next(L, -2); assert(result); /* should not be here if the map was fully processed */ + (void)result; /* ignore unused warning */ if (parent->key_visited) { /* release the current key */ lmpack_unref(L, packer->reg, (int)parent->data[1].i); @@ -1010,6 +1011,7 @@ static int lmpack_session_reply(lua_State *L) "invalid request id"); result = mpack_rpc_reply(session->session, &b, &bl, (mpack_uint32_t)id); assert(result == MPACK_OK); + (void)result; /* ignore unused warning */ lua_pushlstring(L, buf, sizeof(buf) - bl); return 1; } @@ -1027,6 +1029,7 @@ static int lmpack_session_notify(lua_State *L) session = lmpack_check_session(L, 1); result = mpack_rpc_notify(session->session, &b, &bl); assert(result == MPACK_OK); + (void)result; /* ignore unused warning */ lua_pushlstring(L, buf, sizeof(buf) - bl); return 1; } |