Solved a bunch of -Wall errors on modern
This commit is contained in:
+5
-7
@@ -1937,7 +1937,7 @@ u8 GetMonAilment(struct Pokemon *mon)
|
||||
|
||||
static void SetPartyMonsAllowedInMinigame(void)
|
||||
{
|
||||
u16 *ptr;
|
||||
s16 *ptr;
|
||||
|
||||
if (gPartyMenu.menuType == PARTY_MENU_TYPE_MINIGAME)
|
||||
{
|
||||
@@ -4154,9 +4154,9 @@ static void PartyMenuStartSpriteAnim(u8 spriteId, u8 animNum)
|
||||
StartSpriteAnim(&gSprites[spriteId], animNum);
|
||||
}
|
||||
|
||||
// Unused. Might explain the large blank section in gPartyMenuPokeballSmall_Gfx
|
||||
// Might explain the large blank section in gPartyMenuPokeballSmall_Gfx
|
||||
// At the very least this is how the unused anim cmds for sSpriteAnimTable_MenuPokeballSmall were meant to be accessed
|
||||
static void SpriteCB_BounceConfirmCancelButton(u8 spriteId, u8 spriteId2, u8 animNum)
|
||||
static void UNUSED SpriteCB_BounceConfirmCancelButton(u8 spriteId, u8 spriteId2, u8 animNum)
|
||||
{
|
||||
if (animNum == 0)
|
||||
{
|
||||
@@ -6095,8 +6095,7 @@ static void UpdatePartyToFieldOrder(void)
|
||||
Free(partyBuffer);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void SwitchAliveMonIntoLeadSlot(void)
|
||||
static void UNUSED SwitchAliveMonIntoLeadSlot(void)
|
||||
{
|
||||
u8 i;
|
||||
struct Pokemon *mon;
|
||||
@@ -6198,8 +6197,7 @@ void ChooseMonForDaycare(void)
|
||||
InitPartyMenu(PARTY_MENU_TYPE_DAYCARE, PARTY_LAYOUT_SINGLE, PARTY_ACTION_CHOOSE_MON, FALSE, PARTY_MSG_CHOOSE_MON_2, Task_HandleChooseMonInput, BufferMonSelection);
|
||||
}
|
||||
|
||||
// Unused
|
||||
static void ChoosePartyMonByMenuType(u8 menuType)
|
||||
static void UNUSED ChoosePartyMonByMenuType(u8 menuType)
|
||||
{
|
||||
gFieldCallback2 = CB2_FadeFromPartyMenu;
|
||||
InitPartyMenu(menuType, PARTY_LAYOUT_SINGLE, PARTY_ACTION_CHOOSE_AND_CLOSE, FALSE, PARTY_MSG_CHOOSE_MON, Task_HandleChooseMonInput, CB2_ReturnToField);
|
||||
|
||||
Reference in New Issue
Block a user