Solved a bunch of -Wall errors on modern
This commit is contained in:
@@ -2834,9 +2834,8 @@ static void GetScoreResults(struct DodrioGame_ScoreResults *dst, u8 playerId)
|
||||
*dst = sGame->scoreResults[playerId];
|
||||
}
|
||||
|
||||
// Unused
|
||||
// Returns where the specified player's score ranks, 0 being first (highest score)
|
||||
static u8 GetScoreRanking(u8 playerId)
|
||||
static u8 UNUSED GetScoreRanking(u8 playerId)
|
||||
{
|
||||
u8 i, ranking = 0;
|
||||
u8 numPlayers = sGame->numPlayers;
|
||||
@@ -3068,12 +3067,12 @@ static const u8 *const sDebug_PlayerNames[] =
|
||||
sText_Digits
|
||||
};
|
||||
|
||||
static void Debug_UpdateNumPlayers(void)
|
||||
static void UNUSED Debug_UpdateNumPlayers(void)
|
||||
{
|
||||
sGame->numPlayers = GetLinkPlayerCount();
|
||||
}
|
||||
|
||||
static void Debug_SetPlayerNamesAndResults(void)
|
||||
static void UNUSED Debug_SetPlayerNamesAndResults(void)
|
||||
{
|
||||
u8 i, playerId;
|
||||
|
||||
@@ -4253,8 +4252,7 @@ static void SetBerryAnim(u16 id, u8 animNum)
|
||||
StartSpriteAnim(&gSprites[*sBerrySpriteIds[id]], animNum);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void UnusedSetSpritePos(u8 spriteId)
|
||||
static void UNUSED UnusedSetSpritePos(u8 spriteId)
|
||||
{
|
||||
gSprites[spriteId].x = 20 * spriteId + 50;
|
||||
gSprites[spriteId].y = 50;
|
||||
@@ -4486,8 +4484,7 @@ static void InitGameGfx(struct DodrioGame_Gfx *ptr)
|
||||
SetGfxFunc(LoadGfx);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void FreeAllWindowBuffers_(void)
|
||||
static void UNUSED FreeAllWindowBuffers_(void)
|
||||
{
|
||||
FreeAllWindowBuffers();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user