diff options
author | ngie <ngie@FreeBSD.org> | 2015-04-10 08:01:49 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-04-10 08:01:49 +0000 |
commit | 43ee10c1228924cde751067137ea1dcf1efc2a4c (patch) | |
tree | 71e2f731db52e8e42135a18786b631d4c0ec76ae /tools | |
parent | 885290715421ed852faf32f5d5e85bb830900b4e (diff) | |
download | FreeBSD-src-43ee10c1228924cde751067137ea1dcf1efc2a4c.zip FreeBSD-src-43ee10c1228924cde751067137ea1dcf1efc2a4c.tar.gz |
Fix -Wunused warnings, bump WARNS to 6
The output is still broken if prove -rv is run and the testcase aborts
prematurely with fail_assertion (the testcase doesn't really conform to TAP
protocol properly, except when it completes fully)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/sockets/kqueue/Makefile | 1 | ||||
-rw-r--r-- | tools/regression/sockets/kqueue/kqueue.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/regression/sockets/kqueue/Makefile b/tools/regression/sockets/kqueue/Makefile index e37eadf..6771d25 100644 --- a/tools/regression/sockets/kqueue/Makefile +++ b/tools/regression/sockets/kqueue/Makefile @@ -4,5 +4,6 @@ PROG= kqueue MAN= +WARNS?= 6 .include <bsd.prog.mk> diff --git a/tools/regression/sockets/kqueue/kqueue.c b/tools/regression/sockets/kqueue/kqueue.c index d46db96..f73704a 100644 --- a/tools/regression/sockets/kqueue/kqueue.c +++ b/tools/regression/sockets/kqueue/kqueue.c @@ -250,9 +250,9 @@ test_evfilt_write(int kq, int fd[2], const char *socktype) * sockets, and confirm that we can register for various events on them. */ int -main(int argc, char *argv[]) +main(void) { - int i, kq, sv[2]; + int kq, sv[2]; printf("1..49\n"); |