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:
parent
83d26a13ba
commit
566c567269
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user