Solved a bunch of -Wall errors on modern
This commit is contained in:
+5
-10
@@ -2073,8 +2073,7 @@ static u8 CreateNPCTrainerParty(struct Pokemon *party, u16 trainerNum, bool8 fir
|
||||
return gTrainers[trainerNum].partySize;
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void HBlankCB_Battle(void)
|
||||
static void UNUSED HBlankCB_Battle(void)
|
||||
{
|
||||
if (REG_VCOUNT < DISPLAY_HEIGHT && REG_VCOUNT >= 111)
|
||||
SetGpuReg(REG_OFFSET_BG0CNT, BGCNT_SCREENBASE(24) | BGCNT_TXT256x512);
|
||||
@@ -2710,8 +2709,7 @@ void SpriteCallbackDummy_2(struct Sprite *sprite)
|
||||
#define sNumFlickers data[3]
|
||||
#define sDelay data[4]
|
||||
|
||||
// Unused
|
||||
static void SpriteCB_InitFlicker(struct Sprite *sprite)
|
||||
static void UNUSED SpriteCB_InitFlicker(struct Sprite *sprite)
|
||||
{
|
||||
sprite->sNumFlickers = 6;
|
||||
sprite->sDelay = 1;
|
||||
@@ -2866,8 +2864,7 @@ static void SpriteCB_BattleSpriteSlideLeft(struct Sprite *sprite)
|
||||
}
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void SetIdleSpriteCallback(struct Sprite *sprite)
|
||||
static void UNUSED SetIdleSpriteCallback(struct Sprite *sprite)
|
||||
{
|
||||
sprite->callback = SpriteCB_Idle;
|
||||
}
|
||||
@@ -3689,8 +3686,7 @@ static void BattleIntroRecordMonsToDex(void)
|
||||
}
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void BattleIntroSkipRecordMonsToDex(void)
|
||||
static void UNUSED BattleIntroSkipRecordMonsToDex(void)
|
||||
{
|
||||
if (gBattleControllerExecFlags == 0)
|
||||
gBattleMainFunc = BattleIntroPrintPlayerSendsOut;
|
||||
@@ -3793,8 +3789,7 @@ static void BattleIntroPlayer1SendsOutMonAnimation(void)
|
||||
gBattleMainFunc = TryDoEventsBeforeFirstTurn;
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void BattleIntroSwitchInPlayerMons(void)
|
||||
static void UNUSED BattleIntroSwitchInPlayerMons(void)
|
||||
{
|
||||
if (gBattleControllerExecFlags == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user