summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-01-19 01:41:19 +0000
committerngie <ngie@FreeBSD.org>2016-01-19 01:41:19 +0000
commit1a7affd5e6b31797f15eaf1cfe2e3e44e1d609fe (patch)
treed637612f2fbbceaf13f77703ba46f641097eba7e /tools
parent30ae8fa920e706d100633af04d887862e4961ac3 (diff)
downloadFreeBSD-src-1a7affd5e6b31797f15eaf1cfe2e3e44e1d609fe.zip
FreeBSD-src-1a7affd5e6b31797f15eaf1cfe2e3e44e1d609fe.tar.gz
MFC r294128:
Fix -Wunused warning with clang/gcc - Get rid of unused argc/argv variables in main - Bump WARNS to 6
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/sockets/unix_gc/Makefile2
-rw-r--r--tools/regression/sockets/unix_gc/unix_gc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/sockets/unix_gc/Makefile b/tools/regression/sockets/unix_gc/Makefile
index 0c66493..1846609 100644
--- a/tools/regression/sockets/unix_gc/Makefile
+++ b/tools/regression/sockets/unix_gc/Makefile
@@ -2,6 +2,6 @@
PROG= unix_gc
MAN=
-WARNS?= 3
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/tools/regression/sockets/unix_gc/unix_gc.c b/tools/regression/sockets/unix_gc/unix_gc.c
index 8cae2d9..e378f3a 100644
--- a/tools/regression/sockets/unix_gc/unix_gc.c
+++ b/tools/regression/sockets/unix_gc/unix_gc.c
@@ -752,7 +752,7 @@ recursion(void)
#define RMDIR "rm -Rf "
int
-main(int argc, char *argv[])
+main(void)
{
char cmd[sizeof(RMDIR) + PATH_MAX];
int serrno;
OpenPOWER on IntegriCloud