summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-10 02:59:09 +0000
committereadler <eadler@FreeBSD.org>2012-01-10 02:59:09 +0000
commit6de976fb27965c524719f339df0eb7c5c2576e77 (patch)
tree0eae6747a1172f343d358364b2c6b27654edfaf8 /sbin
parentaec8c8d4cc80daa9451606ba6f69e52526c2399b (diff)
downloadFreeBSD-src-6de976fb27965c524719f339df0eb7c5c2576e77.zip
FreeBSD-src-6de976fb27965c524719f339df0eb7c5c2576e77.tar.gz
Fix warning when compiling with gcc46:
error: variable 'c' set but not used Approved by: dim MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r--sbin/newfs/mkfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c
index c40026a..5e2a579 100644
--- a/sbin/newfs/mkfs.c
+++ b/sbin/newfs/mkfs.c
@@ -989,9 +989,7 @@ void
iput(union dinode *ip, ino_t ino)
{
ufs2_daddr_t d;
- int c;
- c = ino_to_cg(&sblock, ino);
bread(&disk, part_ofs + fsbtodb(&sblock, cgtod(&sblock, 0)), (char *)&acg,
sblock.fs_cgsize);
if (acg.cg_magic != CG_MAGIC) {
OpenPOWER on IntegriCloud