fix(mpack): clang warning: unused variable #15968

This commit is contained in:
dundargoc 2021-10-09 01:05:26 +02:00 committed by GitHub
parent 4f4dbfe81c
commit 1e876bd9a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,14 +204,14 @@ static void lmpack_pushnil(lua_State *L)
static mpack_uint32_t lmpack_objlen(lua_State *L, int *is_array)
{
size_t len, max;
int isarr, type;
int isarr;
lua_Number n;
#ifndef NDEBUG
int top = lua_gettop(L);
assert(top);
#endif
if ((type = lua_type(L, -1)) != LUA_TTABLE) {
if ((lua_type(L, -1)) != LUA_TTABLE) {
#if LUA_VERSION_NUM >= 502
len = lua_rawlen(L, -1);
#elif LUA_VERSION_NUM == 501