mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(mpack): clang warning: unused variable #15968
This commit is contained in:
parent
4f4dbfe81c
commit
1e876bd9a8
@ -204,14 +204,14 @@ static void lmpack_pushnil(lua_State *L)
|
|||||||
static mpack_uint32_t lmpack_objlen(lua_State *L, int *is_array)
|
static mpack_uint32_t lmpack_objlen(lua_State *L, int *is_array)
|
||||||
{
|
{
|
||||||
size_t len, max;
|
size_t len, max;
|
||||||
int isarr, type;
|
int isarr;
|
||||||
lua_Number n;
|
lua_Number n;
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
int top = lua_gettop(L);
|
int top = lua_gettop(L);
|
||||||
assert(top);
|
assert(top);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((type = lua_type(L, -1)) != LUA_TTABLE) {
|
if ((lua_type(L, -1)) != LUA_TTABLE) {
|
||||||
#if LUA_VERSION_NUM >= 502
|
#if LUA_VERSION_NUM >= 502
|
||||||
len = lua_rawlen(L, -1);
|
len = lua_rawlen(L, -1);
|
||||||
#elif LUA_VERSION_NUM == 501
|
#elif LUA_VERSION_NUM == 501
|
||||||
|
Loading…
Reference in New Issue
Block a user