From 4d923dbccf69a842cfb1abaa57b17eb9006baec3 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 19 Oct 2020 12:30:10 -0700 Subject: [PATCH] PDP8: Compiler warning cleanup - Initialize local state variables to 0. Likely non functional changes due to lack of depth in static analysis scan. Coverity detects real problems like this. - Fix inconsistent statement indentation. --- PDP8/pdp8_dt.c | 2 +- PDP8/pdp8_td.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PDP8/pdp8_dt.c b/PDP8/pdp8_dt.c index 93b3c4af..49bb79a0 100644 --- a/PDP8/pdp8_dt.c +++ b/PDP8/pdp8_dt.c @@ -979,7 +979,7 @@ switch (fnc) { /* at speed, check fnc * dt_substate = DTO_WCO; if (((dtsa & DTA_MODE) == 0) || (M[DT_WC] == 0)) dtsb = dtsb | DTB_DTF; /* set DTF */ - break; + break; case DTO_WCO: case DTO_WCO | DTO_SOB: /* all done */ dt_schedez (uptr, dir); /* sched end zone */ diff --git a/PDP8/pdp8_td.c b/PDP8/pdp8_td.c index 7ae902f0..c97375d6 100644 --- a/PDP8/pdp8_td.c +++ b/PDP8/pdp8_td.c @@ -412,7 +412,7 @@ return FALSE; t_bool td_setpos (UNIT *uptr) { uint32 new_time, ut, ulin, udelt; -int32 delta; +int32 delta = 0; new_time = sim_grtime (); /* current time */ ut = new_time - uptr->LASTT; /* elapsed time */