From 1a7affd5e6b31797f15eaf1cfe2e3e44e1d609fe Mon Sep 17 00:00:00 2001 From: ngie Date: Tue, 19 Jan 2016 01:41:19 +0000 Subject: MFC r294128: Fix -Wunused warning with clang/gcc - Get rid of unused argc/argv variables in main - Bump WARNS to 6 --- tools/regression/sockets/unix_gc/Makefile | 2 +- tools/regression/sockets/unix_gc/unix_gc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/regression') 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 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; -- cgit v1.1