mirror of
https://github.com/zeldaret/oot
synced 2026-10-08 13:36:37 -04:00
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 <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>
This commit is contained in:
+3
-2
@@ -1,4 +1,5 @@
|
||||
#include "gfx.h"
|
||||
#include "attributes.h"
|
||||
#include "printf.h"
|
||||
#include "translation.h"
|
||||
#include "effect.h"
|
||||
@@ -215,7 +216,7 @@ void Effect_UpdateAll(PlayState* play) {
|
||||
}
|
||||
}
|
||||
|
||||
void Effect_Delete(PlayState* play, s32 index) {
|
||||
void Effect_Delete(UNUSED PlayState* play, s32 index) {
|
||||
if (index == TOTAL_EFFECT_COUNT) {
|
||||
return;
|
||||
}
|
||||
@@ -241,7 +242,7 @@ void Effect_Delete(PlayState* play, s32 index) {
|
||||
}
|
||||
}
|
||||
|
||||
void Effect_DeleteAll(PlayState* play) {
|
||||
void Effect_DeleteAll(UNUSED PlayState* play) {
|
||||
s32 i;
|
||||
|
||||
PRINTF(T("エフェクト総て解放\n", "All effects release\n"));
|
||||
|
||||
Reference in New Issue
Block a user