Fixed a multitude of compiler warnings obtained with -Wall (mainly

unused variables).
This commit is contained in:
mark 1996-04-26 20:48:23 +00:00
parent a88f28f958
commit 189e6aba9f
6 changed files with 21 additions and 29 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: genassym.c,v 1.4 1996/03/13 21:22:32 mark Exp $ */
/* $NetBSD: genassym.c,v 1.5 1996/04/26 20:48:23 mark Exp $ */
/*-
* Copyright (c) 1982, 1990 The Regents of the University of California.
@ -37,6 +37,7 @@
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/resourcevar.h>
#include <sys/device.h>
@ -50,6 +51,7 @@
#include <machine/vmparam.h>
#include <machine/irqhandler.h>
void
main()
{
struct proc *p = 0;
@ -59,11 +61,9 @@ main()
struct sigframe *sigf = 0;
struct uprof *uprof = 0;
irqhandler_t *ih = 0;
struct vconsole *vc = 0;
struct vidc_info *vi = 0;
struct vmspace *vms = 0;
#define def(N,V) printf("#define\t%s %d\n", N, V)
#define def(N,V) printf("#define\t%s %d\n", N, (u_int)V)
def("UPAGES", UPAGES);
def("PGSHIFT", PGSHIFT);

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.6 1996/03/13 21:32:39 mark Exp $ */
/* $NetBSD: machdep.c,v 1.7 1996/04/26 20:48:25 mark Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@ -451,9 +451,9 @@ boot(howto)
void
bootsync(void)
{
int iter;
/* int iter;
int nbusy;
struct buf *bp;
struct buf *bp;*/
static int bootsyncdone = 0;
if (bootsyncdone) return;
@ -1295,7 +1295,7 @@ cpu_startup()
size = allocsys((caddr_t)0);
sysbase = (caddr_t)kmem_alloc(kernel_map, round_page(size));
if (sysbase == 0)
panic("cpu_startup: no room for system tables %d bytes required", size);
panic("cpu_startup: no room for system tables %d bytes required", (u_int)size);
if ((caddr_t)((allocsys(sysbase) - sysbase)) != size)
panic("cpu_startup: system table size inconsistency");

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.4 1996/03/13 21:25:04 mark Exp $ */
/* $NetBSD: pmap.c,v 1.5 1996/04/26 20:48:27 mark Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@ -1974,7 +1974,6 @@ pmap_pte(pmap, va)
pd_entry_t *pde;
pt_entry_t *ptp;
pt_entry_t *result;
int s;
/* The pmap must be valid */

View File

@ -1,4 +1,4 @@
/* $NetBSD: postmortem.c,v 1.4 1996/03/13 21:26:52 mark Exp $ */
/* $NetBSD: postmortem.c,v 1.5 1996/04/26 20:48:28 mark Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@ -222,7 +222,6 @@ postmortem(frame)
{
u_int s;
struct proc *p = curproc;
int loop;
u_int addr;
s = splhigh();

View File

@ -1,4 +1,4 @@
/* $NetBSD: stubs.c,v 1.4 1996/03/08 18:41:52 mark Exp $ */
/* $NetBSD: stubs.c,v 1.5 1996/04/26 20:48:29 mark Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@ -92,11 +92,6 @@ extern videomemory_t videomemory;
int
do_mountroot()
{
struct buf *bp;
int loop;
int s;
int type;
int floppysize;
int error;
#if (NFDC > 0 && NRD > 0 && defined(RAMDISK_HOOKS))
@ -525,7 +520,7 @@ beep_generate()
#endif
#if 0
#if XXX1
/* Debugging functions to dump the buffers linked to a vnode */
void
@ -539,9 +534,9 @@ dumpvndbuf(vp)
for (bp = vp->v_dirtyblkhd.lh_first; bp; bp = nbp) {
nbp = bp->b_vnbufs.le_next;
printf("buf=%08x\n", bp);
printf("flags=%08x proc=%08x bufsize=%08x dev=%04x\n", bp->b_flags, bp->b_proc, bp->b_bufsize, bp->b_dev);
printf("vp=%08x resid=%08x count=%08x addr=%08x\n", bp->b_vp, bp->b_resid, bp->b_bcount, bp->b_un.b_addr);
printf("buf=%08x\n", (u_int)bp);
printf("flags=%08x proc=%08x bufsize=%08x dev=%04x\n", bp->b_flags, (u_int)bp->b_proc, bp->b_bufsize, bp->b_dev);
printf("vp=%08x resid=%08x count=%08x addr=%08x\n", (u_int)bp->b_vp, bp->b_resid, bp->b_bcount, (u_int)bp->b_un.b_addr);
}
(void)splx(s);
}
@ -559,8 +554,8 @@ dumpvncbuf(vp)
nbp = bp->b_vnbufs.le_next;
printf("buf=%08x\n", bp);
printf("flags=%08x proc=%08x bufsize=%08x dev=%04x\n", bp->b_flags, bp->b_proc, bp->b_bufsize, bp->b_dev);
printf("vp=%08x resid=%08x count=%08x addr=%08x\n", bp->b_vp, bp->b_resid, bp->b_bcount, bp->b_un.b_addr);
printf("flags=%08x proc=%08x bufsize=%08x dev=%04x\n", bp->b_flags, (u_int)bp->b_proc, bp->b_bufsize, bp->b_dev);
printf("vp=%08x resid=%08x count=%08x addr=%08x\n", (u_int)bp->b_vp, bp->b_resid, bp->b_bcount, (u_int)bp->b_un.b_addr);
}
(void)splx(s);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.3 1996/03/13 21:16:15 mark Exp $ */
/* $NetBSD: vm_machdep.c,v 1.4 1996/04/26 20:48:31 mark Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@ -202,7 +202,7 @@ cpu_fork(p1, p2)
#ifdef DEBUG_VMMACHDEP
if (pmap_debug_level >= 0) {
printf("vm_map_pageable: addr=%08x\n", addr);
printf("vm_map_pageable: addr=%08x\n", (u_int)addr);
}
#endif
@ -246,11 +246,11 @@ cpu_fork(p1, p2)
void
cpu_set_kpc(p, pc)
struct proc *p;
u_long pc;
void *pc;
{
struct switchframe *sf = (struct switchframe *)p->p_addr->u_pcb.pcb_sp;
sf->sf_r4 = pc;
sf->sf_r4 = (u_int)pc;
sf->sf_r5 = (u_int)p;
}
@ -309,7 +309,6 @@ cpu_swapin(p)
struct proc *p;
{
vm_offset_t addr;
int loop;
#ifdef DEBUG_VMMACHDEP
if (pmap_debug_level >= 0)