mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Fix compiler warnings
This commit is contained in:
@@ -630,7 +630,7 @@ void script_dump_packed(const PackedValue *val)
|
||||
printf("table(%d, %d)", i.uidata1, i.uidata2);
|
||||
break;
|
||||
case LUA_TFUNCTION:
|
||||
printf("function(%lu byte)", i.sdata.size());
|
||||
printf("function(%d bytes)", (int)i.sdata.size());
|
||||
break;
|
||||
case LUA_TUSERDATA:
|
||||
printf("userdata %s %p", i.sdata.c_str(), i.ptrdata);
|
||||
|
@@ -132,9 +132,6 @@ int LuaMinimap::l_show(lua_State *L)
|
||||
if (!g_settings->getBool("enable_minimap"))
|
||||
return 1;
|
||||
|
||||
Client *client = getClient(L);
|
||||
assert(client);
|
||||
|
||||
LuaMinimap *ref = checkObject<LuaMinimap>(L, 1);
|
||||
Minimap *m = getobject(ref);
|
||||
|
||||
@@ -149,9 +146,6 @@ int LuaMinimap::l_show(lua_State *L)
|
||||
|
||||
int LuaMinimap::l_hide(lua_State *L)
|
||||
{
|
||||
Client *client = getClient(L);
|
||||
assert(client);
|
||||
|
||||
LuaMinimap *ref = checkObject<LuaMinimap>(L, 1);
|
||||
Minimap *m = getobject(ref);
|
||||
|
||||
|
Reference in New Issue
Block a user