diff options
author | wollman <wollman@FreeBSD.org> | 1996-07-09 16:51:18 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-07-09 16:51:18 +0000 |
commit | 44f96ba698dc51aac403144e94f459d2a1233a80 (patch) | |
tree | 1f401ae8da275ab881900bd04d9323ebce693597 | |
parent | 1cc912b368f23dcb2a06da21c8a63a3426f792e2 (diff) | |
download | FreeBSD-src-44f96ba698dc51aac403144e94f459d2a1233a80.zip FreeBSD-src-44f96ba698dc51aac403144e94f459d2a1233a80.tar.gz |
Quiet a couple of -Wunused warnings.
-rw-r--r-- | sys/kern/kern_proc.c | 4 | ||||
-rw-r--r-- | sys/kern/subr_log.c | 4 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 6 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 7 |
4 files changed, 15 insertions, 6 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index cd02f3e..c1afc92 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95 - * $Id: kern_proc.c,v 1.19 1996/06/06 17:19:21 phk Exp $ + * $Id: kern_proc.c,v 1.20 1996/06/12 05:07:30 gpalmer Exp $ */ #include <sys/param.h> @@ -77,7 +77,9 @@ LIST_HEAD(uihashhead, uidinfo) *uihashtbl; static u_long uihash; /* size of hash table - 1 */ static void orphanpg __P((struct pgrp *pg)); +#ifdef DEBUG static void DDB_pgrpdump __P((void)); +#endif /* * Other process lists diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c index dd7a759..4c27b38 100644 --- a/sys/kern/subr_log.c +++ b/sys/kern/subr_log.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)subr_log.c 8.1 (Berkeley) 6/10/93 - * $Id: subr_log.c,v 1.16 1995/12/14 08:31:40 phk Exp $ + * $Id: subr_log.c,v 1.17 1996/03/27 19:45:28 bde Exp $ */ /* @@ -242,7 +242,9 @@ logioctl(dev, com, data, flag, p) } static log_devsw_installed = 0; +#ifdef DEVFS static void *log_devfs_token; +#endif static void log_drvinit(void *unused) diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index 5bfd829..25a371c 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)ufs_quota.c 8.2 (Berkeley) 12/30/93 - * $Id: ufs_quota.c,v 1.6 1995/12/22 15:58:56 phk Exp $ + * $Id: ufs_quota.c,v 1.7 1996/01/05 18:31:56 wollman Exp $ */ #include "opt_quota.h" /* not really necessary... */ @@ -63,11 +63,11 @@ static int chkdqchg __P((struct inode *, long, struct ucred *, int)); static int chkiqchg __P((struct inode *, long, struct ucred *, int)); static int dqget __P((struct vnode *, u_long, struct ufsmount *, int, struct dquot **)); -static void dqref __P((struct dquot *)); static int dqsync __P((struct vnode *, struct dquot *)); static void dqflush __P((struct vnode *)); #ifdef DIAGNOSTIC +static void dqref __P((struct dquot *)); static void chkdquot __P((struct inode *)); #endif @@ -842,6 +842,7 @@ dqget(vp, id, ump, type, dqp) return (0); } +#ifdef DIAGNOSTIC /* * Obtain a reference to a dquot. */ @@ -852,6 +853,7 @@ dqref(dq) dq->dq_cnt++; } +#endif /* * Release a reference to a dquot. diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index e1c26fd..2b8fd00 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_vnops.c 8.10 (Berkeley) 4/1/94 - * $Id: ufs_vnops.c,v 1.37 1996/01/19 03:59:28 dyson Exp $ + * $Id: ufs_vnops.c,v 1.38 1996/03/29 12:30:30 bde Exp $ */ #include "opt_quota.h" @@ -222,7 +222,10 @@ ufs_access(ap) struct ucred *cred = ap->a_cred; mode_t mask, mode = ap->a_mode; register gid_t *gp; - int i, error; + int i; +#ifdef QUOTA + int error; +#endif /* * Disallow write attempts on read-only file systems; |