Fix warning when compiling with gcc46:
error: variable 'secsz' set but not used Reviewed by: ae Approved by: dim MFC after: 3 days
This commit is contained in:
parent
566c567269
commit
4417a80129
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229916
@ -718,7 +718,7 @@ gpart_backup(struct gctl_req *req, unsigned int fl __unused)
|
|||||||
struct ggeom *gp;
|
struct ggeom *gp;
|
||||||
const char *s, *scheme;
|
const char *s, *scheme;
|
||||||
off_t sector, end;
|
off_t sector, end;
|
||||||
off_t length, secsz;
|
off_t length;
|
||||||
int error, i, windex, wblocks, wtype;
|
int error, i, windex, wblocks, wtype;
|
||||||
|
|
||||||
if (gctl_get_int(req, "nargs") != 1)
|
if (gctl_get_int(req, "nargs") != 1)
|
||||||
@ -744,7 +744,6 @@ gpart_backup(struct gctl_req *req, unsigned int fl __unused)
|
|||||||
if (scheme == NULL)
|
if (scheme == NULL)
|
||||||
abort();
|
abort();
|
||||||
pp = LIST_FIRST(&gp->lg_consumer)->lg_provider;
|
pp = LIST_FIRST(&gp->lg_consumer)->lg_provider;
|
||||||
secsz = pp->lg_sectorsize;
|
|
||||||
s = find_geomcfg(gp, "last");
|
s = find_geomcfg(gp, "last");
|
||||||
wblocks = strlen(s);
|
wblocks = strlen(s);
|
||||||
wtype = 0;
|
wtype = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user