Solved a bunch of -Wall errors on modern
This commit is contained in:
+7
-11
@@ -195,8 +195,7 @@ static bool32 CheckSioErrored(u8 taskId)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void Task_DelayedBlockRequest(u8 taskId)
|
||||
static void UNUSED Task_DelayedBlockRequest(u8 taskId)
|
||||
{
|
||||
gTasks[taskId].data[0]++;
|
||||
if (gTasks[taskId].data[0] == 10)
|
||||
@@ -1166,14 +1165,13 @@ void PlayerEnteredTradeSeat(void)
|
||||
CreateTask_EnterCableClubSeat(Task_StartWiredTrade);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void CreateTask_StartWiredTrade(void)
|
||||
static void UNUSED CreateTask_StartWiredTrade(void)
|
||||
{
|
||||
CreateTask(Task_StartWiredTrade, 80);
|
||||
}
|
||||
|
||||
// Unused, implemented in Ruby/Sapphire
|
||||
void Script_StartWiredTrade(void)
|
||||
// Implemented in Ruby/Sapphire
|
||||
void UNUSED Script_StartWiredTrade(void)
|
||||
{
|
||||
// CreateTask_StartWiredTrade();
|
||||
// ScriptContext_Stop();
|
||||
@@ -1189,10 +1187,9 @@ void ColosseumPlayerSpotTriggered(void)
|
||||
CreateTask_EnterCableClubSeat(Task_StartWiredCableClubBattle);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void CreateTask_EnterCableClubSeatNoFollowup(void)
|
||||
static UNUSED void CreateTask_EnterCableClubSeatNoFollowup(void)
|
||||
{
|
||||
u8 taskId = CreateTask(Task_EnterCableClubSeat, 80);
|
||||
u8 UNUSED taskId = CreateTask(Task_EnterCableClubSeat, 80);
|
||||
ScriptContext_Stop();
|
||||
}
|
||||
|
||||
@@ -1262,8 +1259,7 @@ static void Task_WaitExitToScript(u8 taskId)
|
||||
}
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void ExitLinkToScript(u8 taskId)
|
||||
static void UNUSED ExitLinkToScript(u8 taskId)
|
||||
{
|
||||
SetCloseLinkCallback();
|
||||
gTasks[taskId].func = Task_WaitExitToScript;
|
||||
|
||||
Reference in New Issue
Block a user