From 57071edbfaec72dd206156b27bfe9267b64c8183 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 20 Oct 2020 03:09:33 -0700 Subject: [PATCH] ID16, ID32: Compiler warning cleanup - Initialize local state variables to 0. Non functional changes due to lack of depth in static analysis scan. --- Interdata/id16_cpu.c | 2 +- Interdata/id32_cpu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Interdata/id16_cpu.c b/Interdata/id16_cpu.c index ff63be20..d2929d13 100644 --- a/Interdata/id16_cpu.c +++ b/Interdata/id16_cpu.c @@ -596,7 +596,7 @@ while (reason == 0) { /* loop until halted */ uint32 dev, drom, inc, lim, opnd; uint32 op, r1, r1p1, r2, ea = 0, oPC; uint32 rslt, t, map; - uint32 ir1, ir2, ityp; + uint32 ir1, ir2 = 0, ityp; int32 sr, st; if (sim_interval <= 0) { /* check clock queue */ diff --git a/Interdata/id32_cpu.c b/Interdata/id32_cpu.c index 3529f52d..9dc132b6 100644 --- a/Interdata/id32_cpu.c +++ b/Interdata/id32_cpu.c @@ -1844,7 +1844,7 @@ else return 0; uint32 int_auto (uint32 dev, uint32 cc) { uint32 addr, vec, by, ccw, ccwa, ccwb; -uint32 i, hw, tblad, tblen, bufe, st, t; +uint32 i, hw, tblad, tblen, bufe, st = 0, t; int32 bufc; uint32 oldPSW = BUILD_PSW (cc);