mirror of
https://github.com/simh/simh.git
synced 2026-04-25 03:34:34 +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:
@@ -394,7 +394,7 @@ t_stat ttr_svc (UNIT *uptr)
|
||||
{
|
||||
t_stat r;
|
||||
|
||||
if (r = read_reader (uptr, ttr_stopioe, (int32 *) &tti_buf))
|
||||
if ((r = read_reader (uptr, ttr_stopioe, (int32 *) &tti_buf)))
|
||||
return r;
|
||||
if (!(uptr->flags & UNIT_NOCS) && /* cstop enable? */
|
||||
(tti_buf == FLEX_CSTOP)) /* cond stop? */
|
||||
@@ -415,7 +415,7 @@ t_stat ptr_svc (UNIT *uptr)
|
||||
{
|
||||
t_stat r;
|
||||
|
||||
if (r = read_reader (uptr, ptr_stopioe, &uptr->buf))
|
||||
if ((r = read_reader (uptr, ptr_stopioe, &uptr->buf)))
|
||||
return r;
|
||||
if (uptr->buf == FLEX_CSTOP) /* cond stop? */
|
||||
inp_done = 1;
|
||||
@@ -548,7 +548,7 @@ else {
|
||||
ch = '\b';
|
||||
else ch = flex_to_ascii[flex | (tto_uc << 6)]; /* cvt flex to ascii */
|
||||
if (ch > 0) { /* legit? */
|
||||
if (r = sim_putchar_s (ch)) /* write char */
|
||||
if ((r = sim_putchar_s (ch))) /* write char */
|
||||
return r;
|
||||
tto_unit[0].pos = tto_unit[0].pos + 1;
|
||||
if (flex == FLEX_CR) { /* cr? */
|
||||
|
||||
Reference in New Issue
Block a user