diff options
author | archie <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
commit | 60d13c7a9dd18f720483338ebef03609492ca98c (patch) | |
tree | 5709d8cdab99e3c1cb9ae7c2117627c1031fdf39 /sys/gnu | |
parent | 2f8d013d96c256b3a48e227aab238e53eb9304cf (diff) | |
download | FreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.zip FreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.tar.gz |
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/ext2fs/ext2_subr.c | 5 | ||||
-rw-r--r-- | sys/gnu/ext2fs/ext2_vfsops.c | 3 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_subr.c | 5 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vfsops.c | 3 | ||||
-rw-r--r-- | sys/gnu/i386/isa/dgb.c | 13 | ||||
-rw-r--r-- | sys/gnu/i386/isa/dgm.c | 17 |
6 files changed, 16 insertions, 30 deletions
diff --git a/sys/gnu/ext2fs/ext2_subr.c b/sys/gnu/ext2fs/ext2_subr.c index 30da6a7..642caa7 100644 --- a/sys/gnu/ext2fs/ext2_subr.c +++ b/sys/gnu/ext2fs/ext2_subr.c @@ -52,7 +52,11 @@ #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> +#include "opt_ddb.h" + +#ifdef DDB static void ext2_checkoverlap __P((struct buf *, struct inode *)); +#endif /* * Return buffer with the contents of block "offset" from the beginning of @@ -88,7 +92,6 @@ ext2_blkatoff(vp, offset, res, bpp) return (0); } -#include "opt_ddb.h" #ifdef DDB static void ext2_checkoverlap(bp, ip) diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c index 446ef3b..ea756b5 100644 --- a/sys/gnu/ext2fs/ext2_vfsops.c +++ b/sys/gnu/ext2fs/ext2_vfsops.c @@ -893,7 +893,6 @@ ext2_sync(mp, waitfor, cred, p) struct inode *ip; struct ufsmount *ump = VFSTOUFS(mp); struct ext2_sb_info *fs; - struct timeval tv; int error, allerror = 0; fs = ump->um_e2fs; @@ -1171,7 +1170,7 @@ ext2_sbupdate(mp, waitfor) register struct ext2_sb_info *fs = mp->um_e2fs; register struct ext2_super_block *es = fs->s_es; register struct buf *bp; - int i, error = 0; + int error = 0; /* printf("\nupdating superblock, waitfor=%s\n", waitfor == MNT_WAIT ? "yes":"no"); */ diff --git a/sys/gnu/fs/ext2fs/ext2_subr.c b/sys/gnu/fs/ext2fs/ext2_subr.c index 30da6a7..642caa7 100644 --- a/sys/gnu/fs/ext2fs/ext2_subr.c +++ b/sys/gnu/fs/ext2fs/ext2_subr.c @@ -52,7 +52,11 @@ #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> +#include "opt_ddb.h" + +#ifdef DDB static void ext2_checkoverlap __P((struct buf *, struct inode *)); +#endif /* * Return buffer with the contents of block "offset" from the beginning of @@ -88,7 +92,6 @@ ext2_blkatoff(vp, offset, res, bpp) return (0); } -#include "opt_ddb.h" #ifdef DDB static void ext2_checkoverlap(bp, ip) diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c index 446ef3b..ea756b5 100644 --- a/sys/gnu/fs/ext2fs/ext2_vfsops.c +++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c @@ -893,7 +893,6 @@ ext2_sync(mp, waitfor, cred, p) struct inode *ip; struct ufsmount *ump = VFSTOUFS(mp); struct ext2_sb_info *fs; - struct timeval tv; int error, allerror = 0; fs = ump->um_e2fs; @@ -1171,7 +1170,7 @@ ext2_sbupdate(mp, waitfor) register struct ext2_sb_info *fs = mp->um_e2fs; register struct ext2_super_block *es = fs->s_es; register struct buf *bp; - int i, error = 0; + int error = 0; /* printf("\nupdating superblock, waitfor=%s\n", waitfor == MNT_WAIT ? "yes":"no"); */ diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c index aac2725..7aeb258 100644 --- a/sys/gnu/i386/isa/dgb.c +++ b/sys/gnu/i386/isa/dgb.c @@ -1,5 +1,5 @@ /*- - * dgb.c $Id: dgb.c,v 1.39 1998/08/16 01:21:49 bde Exp $ + * dgb.c $Id: dgb.c,v 1.40 1998/08/23 08:26:39 bde Exp $ * * Digiboard driver. * @@ -407,10 +407,8 @@ dgbprobe(dev) struct isa_device *dev; { struct dgb_softc *sc= &dgb_softc[dev->id_unit]; - int i, v, t; + int i, v; u_long win_size; /* size of vizible memory window */ - u_char *mem; - int addr; int unit=dev->id_unit; sc->unit=dev->id_unit; @@ -525,7 +523,6 @@ dgbattach(dev) int addr; struct dgb_p *port; volatile struct board_chan *bc; - struct global_data *gd; int shrinkmem; int nfails; ushort *pstat; @@ -1283,7 +1280,6 @@ dgbpoll(unit_c) int rhead, rtail; int whead, wtail; int size; - int c=0; u_char *ptr; int ocount; int ibuf_full,obuf_full; @@ -1512,7 +1508,6 @@ dgbpoll(unit_c) setwin(sc,0); } } - end_of_buffer: ; } bc->idata=1; /* require event on incoming data */ @@ -1957,7 +1952,6 @@ dgbparam(tp, t) struct termios *t; { int dev=tp->t_dev; - int mynor=minor(dev); int unit=MINOR_TO_UNIT(dev); int pnum=MINOR_TO_PORT(dev); struct dgb_softc *sc=&dgb_softc[unit]; @@ -1968,7 +1962,7 @@ dgbparam(tp, t) int mval; int iflag; int hflow; - int s,cs; + int cs; BoardMemWinState ws=bmws_get(); @@ -2170,7 +2164,6 @@ dgbstop(tp, rw) struct dgb_p *port; struct dgb_softc *sc; volatile struct board_chan *bc; - int head; int s; BoardMemWinState ws=bmws_get(); diff --git a/sys/gnu/i386/isa/dgm.c b/sys/gnu/i386/isa/dgm.c index eca931a..8b0ca1f 100644 --- a/sys/gnu/i386/isa/dgm.c +++ b/sys/gnu/i386/isa/dgm.c @@ -1,5 +1,5 @@ /*- - * $Id: dgm.c,v 1.4 1998/08/16 01:21:49 bde Exp $ + * $Id: dgm.c,v 1.5 1998/08/23 08:26:40 bde Exp $ * * This driver and the associated header files support the ISA PC/Xem * Digiboards. Its evolutionary roots are described below. @@ -381,9 +381,7 @@ dgmprobe(dev) struct isa_device *dev; { struct dgm_softc *sc= &dgm_softc[dev->id_unit]; - int i, v, t; - u_char *mem; - int addr; + int i, v; int unit=dev->id_unit; sc->unit=dev->id_unit; @@ -449,14 +447,9 @@ dgmattach(dev) int addr; struct dgm_p *port; volatile struct board_chan *bc; - struct global_data *gd; int shrinkmem; - int nfails; - ushort *pstat; int lowwater; static int nports=0; - char ch; - int stuff; if(sc->status!=ENABLED) { DPRINT2(DB_EXCEPT,"dbg%d: try to attach a disabled card\n",unit); @@ -1087,7 +1080,6 @@ dgmpoll(unit_c) int rhead, rtail; int whead, wtail; int size; - int c=0; u_char *ptr; int ocount; int ibuf_full,obuf_full; @@ -1316,7 +1308,6 @@ dgmpoll(unit_c) setwin(sc,0); } } - end_of_buffer: ; } bc->idata=1; /* require event on incoming data */ @@ -1761,7 +1752,6 @@ dgmparam(tp, t) struct termios *t; { int dev=tp->t_dev; - int mynor=minor(dev); int unit=MINOR_TO_UNIT(dev); int pnum=MINOR_TO_PORT(dev); struct dgm_softc *sc=&dgm_softc[unit]; @@ -1772,7 +1762,7 @@ dgmparam(tp, t) int mval; int iflag; int hflow; - int s,cs; + int cs; BoardMemWinState ws=bmws_get(); @@ -1975,7 +1965,6 @@ dgmstop(tp, rw) struct dgm_p *port; struct dgm_softc *sc; volatile struct board_chan *bc; - int head; int s; BoardMemWinState ws=bmws_get(); |