Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2016 01:42:31 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r294306 - stable/9/tools/regression/sockets/unix_gc
Message-ID:  <201601190142.u0J1gVKB087482@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Jan 19 01:42:31 2016
New Revision: 294306
URL: https://svnweb.freebsd.org/changeset/base/294306

Log:
  MFstable/10 r294305:
  
  MFC r294128:
  
  Fix -Wunused warning with clang/gcc
  
  - Get rid of unused argc/argv variables in main
  - Bump WARNS to 6

Modified:
  stable/9/tools/regression/sockets/unix_gc/Makefile
  stable/9/tools/regression/sockets/unix_gc/unix_gc.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/tools/   (props changed)
  stable/9/tools/regression/   (props changed)
  stable/9/tools/regression/sockets/   (props changed)

Modified: stable/9/tools/regression/sockets/unix_gc/Makefile
==============================================================================
--- stable/9/tools/regression/sockets/unix_gc/Makefile	Tue Jan 19 01:41:19 2016	(r294305)
+++ stable/9/tools/regression/sockets/unix_gc/Makefile	Tue Jan 19 01:42:31 2016	(r294306)
@@ -2,6 +2,6 @@
 
 PROG=	unix_gc
 NO_MAN=
-WARNS?=	3
+WARNS?=	6
 
 .include <bsd.prog.mk>

Modified: stable/9/tools/regression/sockets/unix_gc/unix_gc.c
==============================================================================
--- stable/9/tools/regression/sockets/unix_gc/unix_gc.c	Tue Jan 19 01:41:19 2016	(r294305)
+++ stable/9/tools/regression/sockets/unix_gc/unix_gc.c	Tue Jan 19 01:42:31 2016	(r294306)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601190142.u0J1gVKB087482>