Fix warning when compiling with gcc46:
error: variable 'wdone' set but not use Approved by: dim MFC after: 3 days
This commit is contained in:
parent
af9eff1f20
commit
cc898a0e5c
@ -375,7 +375,7 @@ enum listop {
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int opt, wdone = 0, nargs = 0, i;
|
||||
int opt, nargs = 0, i;
|
||||
enum listop what;
|
||||
char *args[MAX_ARGS];
|
||||
|
||||
@ -438,23 +438,18 @@ main(int argc, char *argv[])
|
||||
switch(what) {
|
||||
case LO_SERVERS:
|
||||
show_serverlist(args[0]);
|
||||
wdone = 1;
|
||||
break;
|
||||
case LO_USERS:
|
||||
show_userlist(args[0]);
|
||||
wdone = 1;
|
||||
break;
|
||||
case LO_QUEUES:
|
||||
show_queuelist(args[0], args[1]);
|
||||
wdone = 1;
|
||||
break;
|
||||
case LO_VOLUMES:
|
||||
list_volumes(args[0]);
|
||||
wdone = 1;
|
||||
break;
|
||||
case LO_BINDERY:
|
||||
list_bindery(args[0], args[1], args[2]);
|
||||
wdone = 1;
|
||||
break;
|
||||
default:
|
||||
help();
|
||||
|
Loading…
Reference in New Issue
Block a user