summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-07-09 16:51:18 +0000
committerwollman <wollman@FreeBSD.org>1996-07-09 16:51:18 +0000
commit44f96ba698dc51aac403144e94f459d2a1233a80 (patch)
tree1f401ae8da275ab881900bd04d9323ebce693597 /sys/ufs
parent1cc912b368f23dcb2a06da21c8a63a3426f792e2 (diff)
downloadFreeBSD-src-44f96ba698dc51aac403144e94f459d2a1233a80.zip
FreeBSD-src-44f96ba698dc51aac403144e94f459d2a1233a80.tar.gz
Quiet a couple of -Wunused warnings.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_quota.c6
-rw-r--r--sys/ufs/ufs/ufs_vnops.c7
2 files changed, 9 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud