Author: eadler (ports committer)
Date: Tue Jan 10 02:58:20 2012
New Revision: 229907
URL: http://svn.freebsd.org/changeset/base/229907
Log:
Fix warning when compiling with gcc46:
error: variable 'wdone' set but not use
Approved by: dim
MFC after: 3 days
Modified:
head/usr.bin/ncplist/ncplist.c
Modified: head/usr.bin/ncplist/ncplist.c
==============================================================================
--- head/usr.bin/ncplist/ncplist.c Tue Jan 10 02:55:43 2012
(r229906)
+++ head/usr.bin/ncplist/ncplist.c Tue Jan 10 02:58:20 2012
(r229907)
@@ -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();
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"