summaryrefslogtreecommitdiff
path: root/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map.c
diff options
context:
space:
mode:
authorTharo <tharo10600@gmail.com>2026-09-24 05:29:19 +0100
committerGitHub <noreply@github.com>2026-09-24 06:29:19 +0200
commit1bef952ff61a6dd1945c7887c1babd94efe95f72 (patch)
tree7436c39fce905685f6d2115d487be3303ceda09c /src/overlays/misc/ovl_kaleido_scope/z_kaleido_map.c
parent39070bb9dd5bba8b60363b81ef0b36f4590e68f4 (diff)
Unused variable/parameter cleanup (#1321)HEADmain
* UNUSED attribute for variables and parameters in static segments and for all stack padding variables * No more unused variable warnings * Make pad variable names consistent * Small cleanup * Macro-ify stack padding * Use stack padding for more variables not previously named pad * Format * Check unused parameter on gamestate overlays and pause menu Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Merge 2x u8 stack pads into 1x s16 stack pad in en_ik * Remove UNUSED from function prototypes * Suggested changes Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * More unused variables * Fix merge, updated for new versions * Format * questionable UNUSED and STACK_PAD more usage * format * format * one more STACK_PADS in z_kaleido_map.c --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'src/overlays/misc/ovl_kaleido_scope/z_kaleido_map.c')
-rw-r--r--src/overlays/misc/ovl_kaleido_scope/z_kaleido_map.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map.c b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map.c
index f454594b4..7e3f46427 100644
--- a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map.c
+++ b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map.c
@@ -1,5 +1,6 @@
#include "z_kaleido_scope.h"
+#include "attributes.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "language_array.h"
@@ -7,6 +8,7 @@
#include "printf.h"
#include "regs.h"
#include "sfx.h"
+#include "stack_pad.h"
#include "sys_ucode.h"
#include "versions.h"
#include "play_state.h"
@@ -416,7 +418,7 @@ void KaleidoScope_DrawWorldMap(PlayState* play, GraphicsContext* gfxCtx) {
};
static s16 pointPulseStage = 1;
static s16 pointPulseTimer = 20;
- static s16 D_8082A5B8[] = { 64, 64, 64, 28 };
+ UNUSED static s16 D_8082A5B8[] = { 64, 64, 64, 28 };
static s16 areaBoxPosX[] = {
-41, // WORLD_MAP_AREA_HYRULE_FIELD
19, // WORLD_MAP_AREA_KAKARIKO_VILLAGE
@@ -646,7 +648,7 @@ void KaleidoScope_DrawWorldMap(PlayState* play, GraphicsContext* gfxCtx) {
#if PLATFORM_N64 && OOT_VERSION != NTSC_1_2
if (0) {
- s32 pad[3];
+ STACK_PADS(s32, 3);
}
#endif