From 4488f983be2581cd1e4182551211a3addb508ad4 Mon Sep 17 00:00:00 2001 From: sbird Date: Tue, 24 Oct 2023 01:00:40 +0200 Subject: [PATCH] fix -Wmaybe-uninitialized for ModifyPersonalityForNature test --- test/battle/trainer_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/battle/trainer_control.c b/test/battle/trainer_control.c index 99bea0e8cce9..810a721fa5af 100644 --- a/test/battle/trainer_control.c +++ b/test/battle/trainer_control.c @@ -123,7 +123,7 @@ TEST("CreateNPCTrainerPartyForTrainer generates different personalities for diff TEST("ModifyPersonalityForNature can set any nature") { - u32 personality, nature, j, k; + u32 personality = 0, nature = 0, j = 0, k = 0; for (j = 0; j < 64; j++) { for (k = 0; k < NUM_NATURES; k++)