svn commit: r229916 - head/sbin/geom/class/part
Eitan Adler
eadler at FreeBSD.org
Tue Jan 10 02:59:35 UTC 2012
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;
More information about the svn-src-head
mailing list