mirror of
https://github.com/simh/simh.git
synced 2026-04-20 09:36:17 +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:
@@ -280,7 +280,7 @@ t_stat r;
|
||||
|
||||
if (sim_is_active (&cdr_unit)) { /* busy? */
|
||||
sim_cancel (&cdr_unit); /* cancel */
|
||||
if (r = cdr_svc (&cdr_unit)) return r; /* process */
|
||||
if ((r = cdr_svc (&cdr_unit))) return r; /* process */
|
||||
}
|
||||
|
||||
if (((cdp_unit.flags & UNIT_ATT) != 0 ||
|
||||
|
||||
@@ -527,7 +527,7 @@ reason = 0;
|
||||
|
||||
while (reason == 0) { /* loop until halted */
|
||||
if (sim_interval <= 0) { /* check clock queue */
|
||||
if (reason = sim_process_event ()) break;
|
||||
if ((reason = sim_process_event ())) break;
|
||||
}
|
||||
|
||||
if (int_req) { /* interrupt? */
|
||||
|
||||
10
S3/s3_disk.c
10
S3/s3_disk.c
@@ -298,7 +298,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
addr++;
|
||||
}
|
||||
|
||||
if ((sect == 55) ) { /* HJS MODS */
|
||||
if (sect == 55) { /* HJS MODS */
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
|
||||
@@ -349,7 +349,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
diskerr[disk] |= 0x0800;
|
||||
break;
|
||||
}
|
||||
if ((sect == 55) ) { /* HJS MODS */
|
||||
if (sect == 55) { /* HJS MODS */
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
|
||||
@@ -392,7 +392,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
diskerr[disk] |= 0x0400;
|
||||
break;
|
||||
}
|
||||
if ((sect == 55) ) { /* HJS MODS */
|
||||
if (sect == 55) { /* HJS MODS */
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
|
||||
@@ -434,7 +434,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
diskerr[disk] |= 0x0400;
|
||||
break;
|
||||
}
|
||||
if ((sect == 55) ) {
|
||||
if (sect == 55) {
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > 0) diskerr[disk] |= 0x0020;
|
||||
@@ -486,7 +486,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
found[disk] = 1;
|
||||
if (res == data)
|
||||
break;
|
||||
if ((sect == 55) ) { /* HJS MODS */
|
||||
if (sect == 55) { /* HJS MODS */
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
|
||||
|
||||
Reference in New Issue
Block a user