Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 02:59:43 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229917 - head/sbin/fsirand
Message-ID:  <201201100259.q0A2xhpE080170@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:43 2012
New Revision: 229917
URL: http://svn.freebsd.org/changeset/base/229917

Log:
  Fix warning when compiling with gcc46:
  	error: variable 'inumber' set but not used
  
  Approved by:	dim
  MFC after:	3 days

Modified:
  head/sbin/fsirand/fsirand.c

Modified: head/sbin/fsirand/fsirand.c
==============================================================================
--- head/sbin/fsirand/fsirand.c	Tue Jan 10 02:59:35 2012	(r229916)
+++ head/sbin/fsirand/fsirand.c	Tue Jan 10 02:59:43 2012	(r229917)
@@ -115,7 +115,7 @@ fsirand(char *device)
 	caddr_t inodebuf;
 	ssize_t ibufsize;
 	struct fs *sblock;
-	ino_t inumber, maxino;
+	ino_t inumber;
 	ufs2_daddr_t sblockloc, dblk;
 	char sbuf[SBLOCKSIZE], sbuftmp[SBLOCKSIZE];
 	int i, devfd, n, cg;
@@ -165,7 +165,6 @@ fsirand(char *device)
 		fprintf(stderr, "Cannot find file system superblock\n");
 		return (1);
 	}
-	maxino = sblock->fs_ncg * sblock->fs_ipg;
 
 	if (sblock->fs_magic == FS_UFS1_MAGIC &&
 	    sblock->fs_old_inodefmt < FS_44INODEFMT) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201100259.q0A2xhpE080170>