diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-10 02:59:35 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-10 02:59:35 +0000 |
commit | d1a66e9a570c5626a077214af100744dcc4eaf28 (patch) | |
tree | 48b436df1cf72c411297fcba9397d08c3e8d3eca /sbin/geom | |
parent | 0279d5ac0e31f5819f1e3c28079dfe0be24791a3 (diff) | |
download | FreeBSD-src-d1a66e9a570c5626a077214af100744dcc4eaf28.zip FreeBSD-src-d1a66e9a570c5626a077214af100744dcc4eaf28.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'secsz' set but not used
Reviewed by: ae
Approved by: dim
MFC after: 3 days
Diffstat (limited to 'sbin/geom')
-rw-r--r-- | sbin/geom/class/part/geom_part.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c index 8db0773..8296517 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; |