From 8aa6c9fde6d9b242a138015fd7c47dffeec40a3b Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Fri, 29 Dec 2017 16:48:52 -0500 Subject: [PATCH] I7000: Fixed coverity warnings. --- I7000/i7000_lpr.c | 3 ++- I7000/i701_cpu.c | 2 +- I7000/i7090_cpu.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/I7000/i7000_lpr.c b/I7000/i7000_lpr.c index de7453ff..4f9a3e6e 100644 --- a/I7000/i7000_lpr.c +++ b/I7000/i7000_lpr.c @@ -244,9 +244,10 @@ print_line(UNIT * uptr, int chan, int unit) for (; i > 1; i--) { if (uptr->flags & UNIT_ATT) sim_fwrite("\r\n", 1, 2, uptr->fileref); - if (uptr->flags & ECHO) + if (uptr->flags & ECHO) { sim_putchar('\r'); sim_putchar('\n'); + } uptr->u4++; if (uptr->u4 > (int32)uptr->capac) { uptr->u4 = 1; diff --git a/I7000/i701_cpu.c b/I7000/i701_cpu.c index ac5bd392..b075dd0a 100644 --- a/I7000/i701_cpu.c +++ b/I7000/i701_cpu.c @@ -354,7 +354,7 @@ sim_instr(void) f |= chan_active(shiftcnt); } sim_interval = 0; - sim_process_event(); + (void)sim_process_event(); } while (f); if (reason != 0) IC = MA; diff --git a/I7000/i7090_cpu.c b/I7000/i7090_cpu.c index 73c9f0f2..615c5ea6 100644 --- a/I7000/i7090_cpu.c +++ b/I7000/i7090_cpu.c @@ -921,7 +921,7 @@ sim_instr(void) } /* Hold out until all channels have idled out */ sim_interval = 0; - sim_process_event(); + (void)sim_process_event(); chan_proc(); f = chan_active(0); for (shiftcnt = 1; shiftcnt < NUM_CHAN; shiftcnt++) {