mirror of
https://github.com/simh/simh.git
synced 2026-04-27 12:28:49 +00:00
Cleanup for warning messages produced by the clang C compiler. Mostly adding parentheses in conditional assignments and clarification parentheses in complex boolean expressions.
This commit is contained in:
@@ -368,13 +368,13 @@ switch (uptr->UCMD) { /* case on function */
|
||||
}
|
||||
|
||||
if (mt_bptr) { /* any chars? */
|
||||
if (st = sim_tape_wrrecf (uptr, mtxb, mt_bptr)) /* write, err? */
|
||||
if ((st = sim_tape_wrrecf (uptr, mtxb, mt_bptr)))/* write, err? */
|
||||
r = mt_map_err (uptr, st); /* map error */
|
||||
}
|
||||
break; /* record done */
|
||||
|
||||
case MTC_WEOF: /* write eof */
|
||||
if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */
|
||||
if ((st = sim_tape_wrtmk (uptr))) /* write tmk, err? */
|
||||
r = mt_map_err (uptr, st); /* map error */
|
||||
mt_sta = mt_sta | STA_EOF; /* set eof */
|
||||
if (mt_arm[u]) /* set intr */
|
||||
@@ -402,7 +402,7 @@ switch (uptr->UCMD) { /* case on function */
|
||||
break;
|
||||
|
||||
case MTC_SPCR: /* backspace */
|
||||
if (st = sim_tape_sprecr (uptr, &tbc)) /* skip rec rev, err? */
|
||||
if ((st = sim_tape_sprecr (uptr, &tbc))) /* skip rec rev, err? */
|
||||
r = mt_map_err (uptr, st); /* map error */
|
||||
break;
|
||||
} /* end case */
|
||||
|
||||
Reference in New Issue
Block a user