summaryrefslogtreecommitdiff
path: root/src/overlays/actors/ovl_Bg_Treemouth
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/actors/ovl_Bg_Treemouth
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/actors/ovl_Bg_Treemouth')
-rw-r--r--src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c b/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c
index 28b1a3521..d078fa7cf 100644
--- a/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c
+++ b/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c
@@ -7,11 +7,13 @@
#include "z_bg_treemouth.h"
#include "src/overlays/effects/ovl_Effect_Ss_Hahen/z_eff_ss_hahen.h"
+#include "attributes.h"
#include "libc64/qrand.h"
#include "gfx.h"
#include "gfx_setupdl.h"
#include "ichain.h"
#include "sfx.h"
+#include "stack_pad.h"
#include "sys_matrix.h"
#include "versions.h"
#include "effect.h"
@@ -62,8 +64,7 @@ static InitChainEntry sInitChain[] = {
ICHAIN_F32(cullingVolumeDownward, 300, ICHAIN_STOP),
};
-// unused
-static f32 D_808BD9C4[] = {
+UNUSED static f32 D_808BD9C4[] = {
-2746.0f, 545.0f, 4694.0f, -2654.0f, 146.0f, 4534.0f,
};
@@ -72,7 +73,7 @@ void BgTreemouth_SetupAction(BgTreemouth* this, BgTreemouthActionFunc actionFunc
}
void BgTreemouth_Init(Actor* thisx, PlayState* play) {
- s32 pad;
+ STACK_PAD(s32);
BgTreemouth* this = (BgTreemouth*)thisx;
CollisionHeader* colHeader = NULL;
@@ -239,7 +240,7 @@ void BgTreemouth_Update(Actor* thisx, PlayState* play) {
}
void BgTreemouth_Draw(Actor* thisx, PlayState* play) {
- s32 pad;
+ STACK_PAD(s32);
u16 alpha = 500;
OPEN_DISPS(play->state.gfxCtx, "../z_bg_treemouth.c", 893);