From 1bef952ff61a6dd1945c7887c1babd94efe95f72 Mon Sep 17 00:00:00 2001 From: Tharo Date: Thu, 24 Sep 2026 05:29:19 +0100 Subject: Unused variable/parameter cleanup (#1321) * 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 * Merge 2x u8 stack pads into 1x s16 stack pad in en_ik * Remove UNUSED from function prototypes * Suggested changes Co-authored-by: Dragorn421 * 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 --- src/code/PreRender.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/code/PreRender.c') diff --git a/src/code/PreRender.c b/src/code/PreRender.c index d240f6c80..4e4525b27 100644 --- a/src/code/PreRender.c +++ b/src/code/PreRender.c @@ -12,6 +12,7 @@ #include "prerender.h" #include "printf.h" #include "regs.h" +#include "stack_pad.h" void PreRender_SetValuesSave(PreRender* this, u32 width, u32 height, void* fbuf, void* zbuf, void* cvg) { this->widthSave = width; @@ -733,7 +734,7 @@ void PreRender_DivotFilter(PreRender* this) { u8* buffR = alloca(this->width); u8* buffG = alloca(this->width); u8* buffB = alloca(this->width); - s32 pad2[3]; + STACK_PADS(s32, 3); s32 pxR; s32 pxG; s32 pxB; -- cgit v1.2.3