From 4417a801290b68b26b1071cc38745f31b1aab935 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Tue, 10 Jan 2012 02:59:35 +0000 Subject: [PATCH] Fix warning when compiling with gcc46: error: variable 'secsz' set but not used Reviewed by: ae Approved by: dim MFC after: 3 days --- sbin/geom/class/part/geom_part.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c index 8db077371711..8296517ff7bf 100644 --- a/sbin/geom/class/part/geom_part.c +++ b/sbin/geom/class/part/geom_part.c @@ -718,7 +718,7 @@ gpart_backup(struct gctl_req *req, unsigned int fl __unused) 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, unsigned int fl __unused) 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;