diff --git a/src/engine/level_script.c b/src/engine/level_script.c index 3c71e3d75..bb955dce6 100644 --- a/src/engine/level_script.c +++ b/src/engine/level_script.c @@ -502,7 +502,7 @@ static void level_cmd_23(void) { } static void level_cmd_init_mario(void) { - u32 behaviorArg = CMD_GET(u32, 4); + UNUSED u32 behaviorArg = CMD_GET(u32, 4); void* behaviorScript = CMD_GET(void*, 8); u16 slot = CMD_GET(u8, 3); struct GraphNode* unk18 = dynos_model_get_geo(slot); diff --git a/src/pc/lua/smlua_sync_table.c b/src/pc/lua/smlua_sync_table.c index 766b35cd9..bd3c64f28 100644 --- a/src/pc/lua/smlua_sync_table.c +++ b/src/pc/lua/smlua_sync_table.c @@ -144,7 +144,6 @@ static void smlua_sync_table_call_hook(int syncTableIndex, int keyIndex, int pre // call hook struct Mod* prevActiveMod = gLuaActiveMod; - struct ModFile* prevActiveModFile = gLuaActiveModFile; gLuaActiveMod = mod; gLuaActiveModFile = NULL; @@ -180,7 +179,7 @@ static bool smlua_sync_table_send_field(u8 toLocalIndex, int stackIndex, bool al } // get key - struct LSTNetworkType lntKey = smlua_to_lnt(L, keyIndex); + smlua_to_lnt(L, keyIndex); if (!gSmLuaConvertSuccess) { LOG_LUA_LINE("Error: tried to alter sync table with an invalid key"); return false;