svn commit: r294305 - stable/10/tools/regression/sockets/unix_gc
Garrett Cooper
ngie at FreeBSD.org
Tue Jan 19 01:41:21 UTC 2016
Author: ngie
Date: Tue Jan 19 01:41:19 2016
New Revision: 294305
URL: https://svnweb.freebsd.org/changeset/base/294305
Log:
MFC r294128:
Fix -Wunused warning with clang/gcc
- Get rid of unused argc/argv variables in main
- Bump WARNS to 6
Modified:
stable/10/tools/regression/sockets/unix_gc/Makefile
stable/10/tools/regression/sockets/unix_gc/unix_gc.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/tools/regression/sockets/unix_gc/Makefile
==============================================================================
--- stable/10/tools/regression/sockets/unix_gc/Makefile Tue Jan 19 01:39:29 2016 (r294304)
+++ stable/10/tools/regression/sockets/unix_gc/Makefile Tue Jan 19 01:41:19 2016 (r294305)
@@ -2,6 +2,6 @@
PROG= unix_gc
MAN=
-WARNS?= 3
+WARNS?= 6
.include <bsd.prog.mk>
Modified: stable/10/tools/regression/sockets/unix_gc/unix_gc.c
==============================================================================
--- stable/10/tools/regression/sockets/unix_gc/unix_gc.c Tue Jan 19 01:39:29 2016 (r294304)
+++ stable/10/tools/regression/sockets/unix_gc/unix_gc.c Tue Jan 19 01:41:19 2016 (r294305)
@@ -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;
More information about the svn-src-stable
mailing list