diff options
| author | Tharo <tharo10600@gmail.com> | 2026-09-24 05:29:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-24 06:29:19 +0200 |
| commit | 1bef952ff61a6dd1945c7887c1babd94efe95f72 (patch) | |
| tree | 7436c39fce905685f6d2115d487be3303ceda09c /src/overlays/actors/ovl_En_Viewer | |
| parent | 39070bb9dd5bba8b60363b81ef0b36f4590e68f4 (diff) | |
* 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_En_Viewer')
| -rw-r--r-- | src/overlays/actors/ovl_En_Viewer/z_en_viewer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c b/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c index 5d3ad650e..51f0b5691 100644 --- a/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c +++ b/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c @@ -18,6 +18,7 @@ #include "seqcmd.h" #include "sequence.h" #include "sfx.h" +#include "stack_pad.h" #include "sys_matrix.h" #include "z_lib.h" #include "audio.h" @@ -629,7 +630,7 @@ s32 EnViewer_ZeldaOverrideLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, } void EnViewer_ZeldaPostLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot, void* thisx) { - s32 pad; + STACK_PAD(s32); if (play->sceneId == SCENE_TEMPLE_OF_TIME) { if (limbIndex == 16) { @@ -715,7 +716,7 @@ static EnViewerDrawFunc sDrawFuncs[] = { void EnViewer_Draw(Actor* thisx, PlayState* play) { EnViewer* this = (EnViewer*)thisx; - s32 pad; + STACK_PAD(s32); s16 type; OPEN_DISPS(play->state.gfxCtx, "../z_en_viewer.c", 1760); |
