PDP11: Cleanup potential compiler warnings
This commit is contained in:
parent
f95b20e1f3
commit
9166219476
5 changed files with 9 additions and 9 deletions
|
@ -1453,7 +1453,7 @@ return ((nz - 1) * 8) + i;
|
|||
|
||||
void CreateTable (DSTR *dsrc, DSTR mtable[10])
|
||||
{
|
||||
int32 (i);
|
||||
int32 i;
|
||||
|
||||
mtable[1] = *dsrc;
|
||||
for (i = 2; i < 10; i++)
|
||||
|
|
|
@ -226,7 +226,7 @@ uint16 dz_lpr[MAX_DZ_MUXES] = { 0 }; /* line param */
|
|||
uint16 dz_tcr[MAX_DZ_MUXES] = { 0 }; /* xmit control */
|
||||
uint16 dz_msr[MAX_DZ_MUXES] = { 0 }; /* modem status */
|
||||
uint16 dz_tdr[MAX_DZ_MUXES] = { 0 }; /* xmit data */
|
||||
uint16 dz_silo[MAX_DZ_MUXES][DZ_SILO_ALM] = { 0 }; /* silo */
|
||||
uint16 dz_silo[MAX_DZ_MUXES][DZ_SILO_ALM] = { {0} }; /* silo */
|
||||
uint16 dz_scnt[MAX_DZ_MUXES] = { 0 }; /* silo used */
|
||||
uint8 dz_sae[MAX_DZ_MUXES] = { 0 }; /* silo alarm enabled */
|
||||
uint32 dz_rxi = 0; /* rcv interrupts */
|
||||
|
|
|
@ -1186,7 +1186,7 @@ switch (fnc) { /* case on function */
|
|||
else if (uptr->FNC == FNC_READ) { /* read? */
|
||||
err = sim_disk_rdsect (uptr, da/HK_NUMWD, (uint8 *)hkxb, §sread, ((wc + (HK_NUMWD - 1)) & ~(HK_NUMWD - 1))/HK_NUMWD);
|
||||
if ((err == SCPE_OK) &&
|
||||
(sectsread != (((wc + (HK_NUMWD - 1)) & ~(HK_NUMWD - 1))/HK_NUMWD)))
|
||||
(sectsread != (t_seccnt)((((wc + (HK_NUMWD - 1)) & ~(HK_NUMWD - 1))/HK_NUMWD))))
|
||||
err = -1;
|
||||
sim_disk_data_trace (uptr, (uint8 *)hkxb, da/HK_NUMWD, sectsread*HK_NUMWD*sizeof(*hkxb), "sim_disk_rdsect", HKDEB_DAT & dptr->dctrl, HKDEB_OPS);
|
||||
if (hkcs2 & CS2_UAI) { /* no addr inc? */
|
||||
|
@ -1206,7 +1206,7 @@ switch (fnc) { /* case on function */
|
|||
else { /* wchk */
|
||||
err = sim_disk_rdsect (uptr, da/HK_NUMWD, (uint8 *)hkxb, §sread, ((wc + (HK_NUMWD - 1)) & ~(HK_NUMWD - 1))/HK_NUMWD);
|
||||
if ((err == SCPE_OK) &&
|
||||
(sectsread != (((wc + (HK_NUMWD - 1)) & ~(HK_NUMWD - 1))/HK_NUMWD)))
|
||||
(sectsread != (t_seccnt)((((wc + (HK_NUMWD - 1)) & ~(HK_NUMWD - 1))/HK_NUMWD))))
|
||||
err = -1;
|
||||
sim_disk_data_trace (uptr, (uint8 *)hkxb, da/HK_NUMWD, sectsread*HK_NUMWD*sizeof(*hkxb), "sim_disk_rdsect", HKDEB_DAT & dptr->dctrl, HKDEB_OPS);
|
||||
awc = wc;
|
||||
|
|
|
@ -556,7 +556,7 @@ display_delay(int t, int slowdown)
|
|||
return;
|
||||
|
||||
elapsed = os_elapsed(); /* read and reset elapsed timer */
|
||||
if (elapsed == ~0L) { /* first time thru? */
|
||||
if (elapsed == (unsigned long)(~0L)) {/* first time thru? */
|
||||
slowdown = 0; /* no adjustments */
|
||||
elapsed = sim_time;
|
||||
}
|
||||
|
@ -946,7 +946,7 @@ phosphor_init(struct phosphor *phosphors, int nphosphors, int color)
|
|||
static struct display *
|
||||
find_type(enum display_type type)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
struct display *dp;
|
||||
|
||||
for (i = 0, dp = displays; i < ELEMENTS(displays); i++, dp++)
|
||||
|
|
|
@ -2923,9 +2923,9 @@ character(int c)
|
|||
lp_suppress = x == 0 || x == 5;
|
||||
|
||||
for (y = 0; y < 8; ++y) {
|
||||
int delay_skew;
|
||||
int delay_skew = 0;
|
||||
int compress = vt11_csp_w <= 12 && x == 2;
|
||||
int dot = col & (1<<y), nxtdot;
|
||||
int dot = col & (1<<y), nxtdot = 0;
|
||||
|
||||
if (dot) {
|
||||
illum2(xbase + xllc, ybase + yllc);
|
||||
|
@ -2941,7 +2941,7 @@ character(int c)
|
|||
++yllc;
|
||||
if (dot) {
|
||||
illum2(xbase + xllc, ybase + yllc);
|
||||
if (!compress || nxtdot == 0)
|
||||
if (!compress || (nxtdot == 0))
|
||||
illum2(xbase + xllc + 1, ybase + yllc);
|
||||
}
|
||||
if (italics && delay_skew)
|
||||
|
|
Loading…
Add table
Reference in a new issue