svn commit: r229918 - head/sbin/fsck_ffs

Eitan Adler eadler at FreeBSD.org
Tue Jan 10 02:59:51 UTC 2012


Author: eadler (ports committer)
Date: Tue Jan 10 02:59:50 2012
New Revision: 229918
URL: http://svn.freebsd.org/changeset/base/229918

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

Modified:
  head/sbin/fsck_ffs/gjournal.c

Modified: head/sbin/fsck_ffs/gjournal.c
==============================================================================
--- head/sbin/fsck_ffs/gjournal.c	Tue Jan 10 02:59:43 2012	(r229917)
+++ head/sbin/fsck_ffs/gjournal.c	Tue Jan 10 02:59:50 2012	(r229918)
@@ -399,7 +399,7 @@ gjournal_check(const char *filesys)
 	void *p;
 	struct cgchain *cgc;
 	struct cg *cgp;
-	uint8_t *inosused, *blksfree;
+	uint8_t *inosused;
 	ino_t cino, ino;
 	int cg, mode;
 
@@ -438,7 +438,6 @@ gjournal_check(const char *filesys)
 		/* We don't want it to be freed in the meantime. */
 		busycg(cgc);
 		inosused = cg_inosused(cgp);
-		blksfree = cg_blksfree(cgp);
 		/*
 		 * Now go through the list of all inodes in this cylinder group
 		 * to find unreferenced ones.


More information about the svn-src-all mailing list