Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 02:59:35 +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: r229916 - head/sbin/geom/class/part
Message-ID:  <201201100259.q0A2xZju080121@svn.freebsd.org>

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

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

Modified:
  head/sbin/geom/class/part/geom_part.c

Modified: head/sbin/geom/class/part/geom_part.c
==============================================================================
--- head/sbin/geom/class/part/geom_part.c	Tue Jan 10 02:59:26 2012	(r229915)
+++ head/sbin/geom/class/part/geom_part.c	Tue Jan 10 02:59:35 2012	(r229916)
@@ -718,7 +718,7 @@ gpart_backup(struct gctl_req *req, unsig
 	struct ggeom *gp;
 	const char *s, *scheme;
 	off_t sector, end;
-	off_t length, secsz;
+	off_t length;
 	int error, i, windex, wblocks, wtype;
 
 	if (gctl_get_int(req, "nargs") != 1)
@@ -744,7 +744,6 @@ gpart_backup(struct gctl_req *req, unsig
 	if (scheme == NULL)
 		abort();
 	pp = LIST_FIRST(&gp->lg_consumer)->lg_provider;
-	secsz = pp->lg_sectorsize;
 	s = find_geomcfg(gp, "last");
 	wblocks = strlen(s);
 	wtype = 0;



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