mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-25 09:22:12 -04:00
Fix gcc warnings (#246)
* fix a huge amount of warnings * fix another big bunch * fix remaining warnings * Run formatter
This commit is contained in:
@@ -145,7 +145,7 @@ void FaultDrawer_FillScreen() {
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/boot/fault_drawer/D_80099080.s")
|
||||
|
||||
void FaultDrawer_VPrintf(const char* str, char* args) { // va_list
|
||||
_Printf((printf_func)FaultDrawer_FormatStringFunc, sFaultDrawContext, str, args);
|
||||
_Printf((PrintCallback)FaultDrawer_FormatStringFunc, sFaultDrawContext, str, args);
|
||||
}
|
||||
|
||||
void FaultDrawer_Printf(const char* fmt, ...) {
|
||||
|
||||
@@ -104,9 +104,9 @@ s32 Yaz0_DecompressImpl(u8* src, u8* dst) {
|
||||
backPtr = dst - off;
|
||||
src += 2;
|
||||
|
||||
chunkSize = (nibble == 0) // N = chunkSize; B = back offset
|
||||
? *src++ + 0x12 // 3 bytes 0B BB NN
|
||||
: nibble + 2; // 2 bytes NB BB
|
||||
chunkSize = (nibble == 0) // N = chunkSize; B = back offset
|
||||
? (u32)(*src++ + 0x12) // 3 bytes 0B BB NN
|
||||
: nibble + 2; // 2 bytes NB BB
|
||||
|
||||
do {
|
||||
*dst++ = *(backPtr++ - 1);
|
||||
@@ -125,8 +125,8 @@ s32 Yaz0_DecompressImpl(u8* src, u8* dst) {
|
||||
void Yaz0_Decompress(u32 romStart, void* dst, u32 size) {
|
||||
s32 status;
|
||||
u32 pad;
|
||||
u8 sp80[0x50];
|
||||
u8 sp30[0x50];
|
||||
char sp80[0x50];
|
||||
char sp30[0x50];
|
||||
|
||||
if (sYaz0CurDataEnd != NULL) {
|
||||
while (sYaz0CurDataEnd != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user