Fix some mildly annoying compiler warnings about unused variables

and incorrect types in printf() format strings.
This commit is contained in:
Andrew Gallatin 1999-01-20 20:51:39 +00:00
parent d0bf24fc77
commit b8b442b5ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42912
2 changed files with 2 additions and 5 deletions

View File

@ -58,7 +58,6 @@ static int comcnrate = CONSPEED;
void dec_2100_a50_init __P((void));
static void dec_2100_a50_cons_init __P((void));
static void dec_2100_a50_device_register __P((struct device *, void *));
static void dec_2100_a50_intr_map __P((void *));
void sio_intr_establish __P((int));
void sio_intr_disestablish __P((int));
@ -149,7 +148,7 @@ dec_2100_a50_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}
@ -163,7 +162,6 @@ dec_2100_a50_intr_map(void *arg)
u_int32_t pirqreg;
int pirq=0; /* gcc -Wuninitialized XXX */
pcicfgregs *cfg = (pcicfgregs *)arg;
static int intr_setup_done=0;
/*
* Slot->interrupt translation. Taken from NetBSD

View File

@ -78,7 +78,6 @@ extern int sccnattach __P((void));
void
st550_init()
{
int i;
platform.family = "Digital Personal Workstation (Miata)";
if ((platform.model = alpha_dsr_sysname()) == NULL) {
@ -141,7 +140,7 @@ st550_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}