Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2012 06:57:47 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r230563 - stable/9/sbin/geom/class/part
Message-ID:  <201201260657.q0Q6vlKX067064@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Thu Jan 26 06:57:47 2012
New Revision: 230563
URL: http://svn.freebsd.org/changeset/base/230563

Log:
  MFC r229916 (by eadler):
    Fix warning when compiling with gcc46:
  	 error: variable 'secsz' set but not used

Modified:
  stable/9/sbin/geom/class/part/geom_part.c
Directory Properties:
  stable/9/sbin/geom/class/part/   (props changed)

Modified: stable/9/sbin/geom/class/part/geom_part.c
==============================================================================
--- stable/9/sbin/geom/class/part/geom_part.c	Thu Jan 26 05:11:37 2012	(r230562)
+++ stable/9/sbin/geom/class/part/geom_part.c	Thu Jan 26 06:57:47 2012	(r230563)
@@ -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?201201260657.q0Q6vlKX067064>