From ed487b4bb849b027481c2d52b06aa5bec9d44f2c Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Mon, 11 Oct 2021 22:16:43 +0200 Subject: Fix a few warnings (#998) * Fix some warnings * Revert warning fixes in audio code --- src/code/code_800BB0A0.c | 2 +- src/code/z_sram.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/code') diff --git a/src/code/code_800BB0A0.c b/src/code/code_800BB0A0.c index 1c9223107..0f2ee7d74 100644 --- a/src/code/code_800BB0A0.c +++ b/src/code/code_800BB0A0.c @@ -45,7 +45,7 @@ s32 func_800BB2B4(Vec3f* pos, f32* roll, f32* fov, CutsceneCameraPoint* point, s pointData[i][4] = point[key + i].viewAngle; } - func_800BB0A0(progress, pos, roll, fov, &pointData[0], &pointData[1], &pointData[2], &pointData[3]); + func_800BB0A0(progress, pos, roll, fov, pointData[0], pointData[1], pointData[2], pointData[3]); if (point[*keyFrame + 1].nextPointFrame != 0) { speed1 = 1.0f / point[*keyFrame + 1].nextPointFrame; diff --git a/src/code/z_sram.c b/src/code/z_sram.c index 44287017b..195da41b5 100644 --- a/src/code/z_sram.c +++ b/src/code/z_sram.c @@ -383,7 +383,7 @@ void Sram_OpenSave(SramContext* sramCtx) { MemCopy(gScarecrowCustomSongPtr, &gSaveContext.scarecrowCustomSong, 0x360); - ptr = gScarecrowCustomSongPtr; + ptr = (u8*)gScarecrowCustomSongPtr; for (i = 0; i < 0x360; i++, ptr++) { osSyncPrintf("%d, ", *ptr); } -- cgit v1.2.3