Solved a bunch of -Wall errors on modern
This commit is contained in:
@@ -1370,8 +1370,7 @@ void DrawTextWindowAndBufferTiles(const u8 *string, void *dst, u8 zero1, u8 zero
|
||||
RemoveWindow(windowId);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void UnusedDrawTextWindow(const u8 *string, void *dst, u16 offset, u8 bgColor, u8 fgColor, u8 shadowColor)
|
||||
static void UNUSED UnusedDrawTextWindow(const u8 *string, void *dst, u16 offset, u8 bgColor, u8 fgColor, u8 shadowColor)
|
||||
{
|
||||
u32 tilesSize;
|
||||
u8 windowId;
|
||||
@@ -1486,8 +1485,7 @@ u8 *StringCopyAndFillWithSpaces(u8 *dst, const u8 *src, u16 n)
|
||||
return str;
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void UnusedWriteRectCpu(u16 *dest, u16 dest_left, u16 dest_top, const u16 *src, u16 src_left, u16 src_top, u16 dest_width, u16 dest_height, u16 src_width)
|
||||
static void UNUSED UnusedWriteRectCpu(u16 *dest, u16 dest_left, u16 dest_top, const u16 *src, u16 src_left, u16 src_top, u16 dest_width, u16 dest_height, u16 src_width)
|
||||
{
|
||||
u16 i;
|
||||
|
||||
@@ -1502,8 +1500,7 @@ static void UnusedWriteRectCpu(u16 *dest, u16 dest_left, u16 dest_top, const u16
|
||||
}
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void UnusedWriteRectDma(u16 *dest, u16 dest_left, u16 dest_top, u16 width, u16 height)
|
||||
static void UNUSED UnusedWriteRectDma(u16 *dest, u16 dest_left, u16 dest_top, u16 width, u16 height)
|
||||
{
|
||||
u16 i;
|
||||
|
||||
@@ -1697,8 +1694,7 @@ static void CB2_ExitPokeStorage(void)
|
||||
SetMainCallback2(CB2_ReturnToField);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static s16 StorageSystemGetNextMonIndex(struct BoxPokemon *box, s8 startIdx, u8 stopIdx, u8 mode)
|
||||
static s16 UNUSED StorageSystemGetNextMonIndex(struct BoxPokemon *box, s8 startIdx, u8 stopIdx, u8 mode)
|
||||
{
|
||||
s16 i;
|
||||
s16 direction;
|
||||
@@ -7893,8 +7889,7 @@ static void StartCursorAnim(u8 animNum)
|
||||
StartSpriteAnim(sStorage->cursorSprite, animNum);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static u8 GetMovingMonOriginalBoxId(void)
|
||||
static u8 UNUSED GetMovingMonOriginalBoxId(void)
|
||||
{
|
||||
return sMovingMonOrigBoxId;
|
||||
}
|
||||
@@ -9392,14 +9387,14 @@ static void SpriteCB_ItemIcon_HideParty(struct Sprite *sprite)
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// Unused, leftover from FRLG
|
||||
static void BackupPokemonStorage(void/*struct PokemonStorage * dest*/)
|
||||
// Leftover from FRLG
|
||||
static void UNUSED BackupPokemonStorage(void/*struct PokemonStorage * dest*/)
|
||||
{
|
||||
//*dest = *gPokemonStoragePtr;
|
||||
}
|
||||
|
||||
// Unused, leftover from FRLG
|
||||
static void RestorePokemonStorage(void/*struct PokemonStorage * src*/)
|
||||
// Leftover from FRLG
|
||||
static void UNUSED RestorePokemonStorage(void/*struct PokemonStorage * src*/)
|
||||
{
|
||||
//*gPokemonStoragePtr = *src;
|
||||
}
|
||||
@@ -9791,8 +9786,7 @@ static void TilemapUtil_Free(void)
|
||||
Free(sTilemapUtil);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void TilemapUtil_UpdateAll(void)
|
||||
static void UNUSED TilemapUtil_UpdateAll(void)
|
||||
{
|
||||
s32 i;
|
||||
|
||||
@@ -9856,8 +9850,7 @@ static void TilemapUtil_SetMap(u8 id, u8 bg, const void *tilemap, u16 width, u16
|
||||
sTilemapUtil[id].active = TRUE;
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void TilemapUtil_SetSavedMap(u8 id, const void *tilemap)
|
||||
static void UNUSED TilemapUtil_SetSavedMap(u8 id, const void *tilemap)
|
||||
{
|
||||
if (id >= sNumTilemapUtilIds)
|
||||
return;
|
||||
@@ -10007,8 +10000,7 @@ static void UnkUtil_Run(void)
|
||||
}
|
||||
}
|
||||
|
||||
// Unused
|
||||
static bool8 UnkUtil_CpuAdd(u8 *dest, u16 dLeft, u16 dTop, const u8 *src, u16 sLeft, u16 sTop, u16 width, u16 height, u16 unkArg)
|
||||
static bool8 UNUSED UnkUtil_CpuAdd(u8 *dest, u16 dLeft, u16 dTop, const u8 *src, u16 sLeft, u16 sTop, u16 width, u16 height, u16 unkArg)
|
||||
{
|
||||
struct UnkUtilData *data;
|
||||
|
||||
@@ -10038,8 +10030,7 @@ static void UnkUtil_CpuRun(struct UnkUtilData *data)
|
||||
}
|
||||
}
|
||||
|
||||
// Unused
|
||||
static bool8 UnkUtil_DmaAdd(void *dest, u16 dLeft, u16 dTop, u16 width, u16 height)
|
||||
static bool8 UNUSED UnkUtil_DmaAdd(void *dest, u16 dLeft, u16 dTop, u16 width, u16 height)
|
||||
{
|
||||
struct UnkUtilData *data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user