From 8cb1a59be4410b4899997578daadece9f6258341 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Fri, 29 Dec 2017 16:45:24 -0500 Subject: [PATCH] I7000: Fix coverity warnings. --- I7000/i7000_lpr.c | 3 ++- I7000/i7090_cpu.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/I7000/i7000_lpr.c b/I7000/i7000_lpr.c index de7453f..4f9a3e6 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/i7090_cpu.c b/I7000/i7090_cpu.c index 73c9f0f..615c5ea 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++) {