diff options
author | Lewis Russell <lewis6991@gmail.com> | 2021-12-15 10:26:50 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2021-12-19 13:20:17 +0000 |
commit | e0750f3e8acad4f492dedc0fed6a1cfbfa232e8b (patch) | |
tree | 31c82fae3ff1906fe52cb8c09a84f8635b07a139 | |
parent | 818ae74eaf6f4538ca61ee4ba703543b0caaff10 (diff) | |
download | rneovim-e0750f3e8acad4f492dedc0fed6a1cfbfa232e8b.tar.gz rneovim-e0750f3e8acad4f492dedc0fed6a1cfbfa232e8b.tar.bz2 rneovim-e0750f3e8acad4f492dedc0fed6a1cfbfa232e8b.zip |
chore: suppress -Wunused-but-set-variable warns
-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; } |