diff options
author | ngie <ngie@FreeBSD.org> | 2015-04-10 09:26:21 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-04-10 09:26:21 +0000 |
commit | 9bd6a71c1fcde329104784dcfaf9791a5065c839 (patch) | |
tree | d86b98e31395902250054e0ec0994e299660d0a8 /tools/regression | |
parent | 36eec446732bba240e9ed5a5e6c8d082dc902cb1 (diff) | |
download | FreeBSD-src-9bd6a71c1fcde329104784dcfaf9791a5065c839.zip FreeBSD-src-9bd6a71c1fcde329104784dcfaf9791a5065c839.tar.gz |
Fix warnings
- Remove argc/argv (-Wunused)
- Mark some parameters to socket_listen_update __unused (-Wunused)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/sockets/listen_backlog/Makefile | 2 | ||||
-rw-r--r-- | tools/regression/sockets/listen_backlog/listen_backlog.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/regression/sockets/listen_backlog/Makefile b/tools/regression/sockets/listen_backlog/Makefile index c7171ec..e2eb135 100644 --- a/tools/regression/sockets/listen_backlog/Makefile +++ b/tools/regression/sockets/listen_backlog/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= listen_backlog -WARNS?= 3 MAN= +WARNS?= 6 .include <bsd.prog.mk> diff --git a/tools/regression/sockets/listen_backlog/listen_backlog.c b/tools/regression/sockets/listen_backlog/listen_backlog.c index be170ab..2276393 100644 --- a/tools/regression/sockets/listen_backlog/listen_backlog.c +++ b/tools/regression/sockets/listen_backlog/listen_backlog.c @@ -218,7 +218,8 @@ test_defaults(void) * the first and second listen(). */ static int -socket_listen_update(int domain, int type, int protocol, int backlog, +socket_listen_update(int domain __unused, int type __unused, + int protocol __unused, int backlog, int update_backlog, int listen_backlog_assertion, int update_backlog_assertion, int *sockp, const char *domainstring, const char *typestring, const char *testclass, const char *test) @@ -365,7 +366,7 @@ test_set_qlimit(void) } int -main(int argc, char *argv[]) +main(void) { size_t len; |