Solved a bunch of -Wall errors on modern
This commit is contained in:
+6
-8
@@ -2758,7 +2758,7 @@ static void GetEasyChatConfirmDeletionText(const u8 **str1, const u8 **str2)
|
||||
*str2 = gText_BeDeletedThatOkay;
|
||||
}
|
||||
|
||||
static void GetKeyboardCursorColAndRow(u8 *column, u8 *row)
|
||||
static void GetKeyboardCursorColAndRow(s8 *column, s8 *row)
|
||||
{
|
||||
*column = sEasyChatScreen->keyboardColumn;
|
||||
*row = sEasyChatScreen->keyboardRow;
|
||||
@@ -2774,7 +2774,7 @@ static u8 GetKeyboardScrollOffset(void)
|
||||
return sEasyChatScreen->keyboardScrollOffset;
|
||||
}
|
||||
|
||||
static void GetWordSelectColAndRow(u8 *column, u8 *row)
|
||||
static void GetWordSelectColAndRow(s8 *column, s8 *row)
|
||||
{
|
||||
*column = sEasyChatScreen->wordSelectColumn;
|
||||
*row = sEasyChatScreen->wordSelectRow;
|
||||
@@ -2790,7 +2790,7 @@ static u8 GetWordSelectLastRow(void)
|
||||
return sEasyChatScreen->wordSelectLastRow;
|
||||
}
|
||||
|
||||
static u8 UnusedDummy(void)
|
||||
static u8 UNUSED UnusedDummy(void)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -5264,7 +5264,7 @@ u8 *ConvertEasyChatWordsToString(u8 *dest, const u16 *src, u16 columns, u16 rows
|
||||
return dest;
|
||||
}
|
||||
|
||||
static u8 *UnusedConvertEasyChatWordsToString(u8 *dest, const u16 *src, u16 columns, u16 rows)
|
||||
static u8 UNUSED *UnusedConvertEasyChatWordsToString(u8 *dest, const u16 *src, u16 columns, u16 rows)
|
||||
{
|
||||
u16 i, j, k;
|
||||
u16 numColumns;
|
||||
@@ -5503,8 +5503,7 @@ u16 UnlockRandomTrendySaying(void)
|
||||
return EC_EMPTY_WORD;
|
||||
}
|
||||
|
||||
// Unused
|
||||
static u16 GetRandomUnlockedTrendySaying(void)
|
||||
static u16 UNUSED GetRandomUnlockedTrendySaying(void)
|
||||
{
|
||||
u16 i;
|
||||
u16 n = GetNumTrendySayingsUnlocked();
|
||||
@@ -5650,8 +5649,7 @@ static u8 GetUnlockedEasyChatGroupId(u8 index)
|
||||
return sWordData->unlockedGroupIds[index];
|
||||
}
|
||||
|
||||
// Unused
|
||||
static u8 *BufferEasyChatWordGroupName(u8 *dest, u8 groupId, u16 totalChars)
|
||||
static u8 UNUSED *BufferEasyChatWordGroupName(u8 *dest, u8 groupId, u16 totalChars)
|
||||
{
|
||||
u16 i;
|
||||
u8 *str = StringCopy(dest, sEasyChatGroupNamePointers[groupId]);
|
||||
|
||||
Reference in New Issue
Block a user