Fix warning when compiling with gcc46:

error: variable 'op' set but not used
	error: variable 'cmd' set but not used

Approved by:	dim
MFC after:	3 days
This commit is contained in:
Eitan Adler 2012-01-10 02:59:26 +00:00
parent 83d26a13ba
commit 566c567269

View File

@ -937,14 +937,12 @@ gvinum_parityop(int argc, char **argv, int rebuild)
struct gctl_req *req;
int flags, i;
const char *errstr;
char *op, *msg;
char *op;
if (rebuild) {
op = "rebuildparity";
msg = "Rebuilding";
} else {
op = "checkparity";
msg = "Checking";
}
optreset = 1;
@ -1057,9 +1055,8 @@ gvinum_rm(int argc, char **argv)
struct gctl_req *req;
int flags, i, j;
const char *errstr;
char buf[20], *cmd;
char buf[20];
cmd = argv[0];
flags = 0;
optreset = 1;
optind = 1;