From 1f94350bebc95b668669f7f850f0ccbc8ca253a6 Mon Sep 17 00:00:00 2001 From: Timothe Litt Date: Sun, 26 Feb 2023 18:02:05 -0500 Subject: [PATCH] Fix uninitialized warning from VS2022 (It's undeserved.) --- PDP18B/pdp18b_fpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PDP18B/pdp18b_fpp.c b/PDP18B/pdp18b_fpp.c index 65427275..45931fbc 100644 --- a/PDP18B/pdp18b_fpp.c +++ b/PDP18B/pdp18b_fpp.c @@ -379,7 +379,7 @@ return SCPE_OK; t_stat fp15_opnd (int32 ir, int32 addr, UFP *fpn) { -int32 i, numwd, wd[3]; +int32 i, numwd, wd[3] = { 0,0,0 }; fguard = 0; /* clear guard */ if (ir & FI_NOLOAD) /* no load? */ @@ -426,7 +426,7 @@ return FP_OK; t_stat fp15_store (int32 ir, int32 addr, UFP *a) { -int32 i, numwd, wd[3]; +int32 i, numwd, wd[3] = { 0,0,0 }; t_stat sta; fguard = 0; /* clear guard */