svn commit: r290848 - head/lib/libc/tests/gen

Garrett Cooper ngie at FreeBSD.org
Sun Nov 15 05:02:42 UTC 2015


Author: ngie
Date: Sun Nov 15 05:02:41 2015
New Revision: 290848
URL: https://svnweb.freebsd.org/changeset/base/290848

Log:
  Fix -Wunused warnings
  
  MFC after: 1 week
  X-MFC with: r290572
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/lib/libc/tests/gen/ftw_test.c
  head/lib/libc/tests/gen/popen_test.c

Modified: head/lib/libc/tests/gen/ftw_test.c
==============================================================================
--- head/lib/libc/tests/gen/ftw_test.c	Sun Nov 15 05:00:32 2015	(r290847)
+++ head/lib/libc/tests/gen/ftw_test.c	Sun Nov 15 05:02:41 2015	(r290848)
@@ -49,7 +49,6 @@ extern char **environ;
 
 static char template[] = "testftw.XXXXXXXXXX";
 static char dir[PATH_MAX];
-static int failures;
 static int ftwflags;
 
 static int

Modified: head/lib/libc/tests/gen/popen_test.c
==============================================================================
--- head/lib/libc/tests/gen/popen_test.c	Sun Nov 15 05:00:32 2015	(r290847)
+++ head/lib/libc/tests/gen/popen_test.c	Sun Nov 15 05:02:41 2015	(r290848)
@@ -71,7 +71,7 @@ check_cloexec(FILE *fp, const char *mode
 ATF_TC_WITHOUT_HEAD(popen_all_modes_test);
 ATF_TC_BODY(popen_all_modes_test, tc)
 {
-	FILE *fp, *fp2;
+	FILE *fp;
 	int i, status;
 	const char *mode;
 	const char *allmodes[] = { "r", "w", "r+", "re", "we", "r+e", "re+" };
@@ -92,7 +92,7 @@ ATF_TC_BODY(popen_all_modes_test, tc)
 ATF_TC_WITHOUT_HEAD(popen_rmodes_test);
 ATF_TC_BODY(popen_rmodes_test, tc)
 {
-	FILE *fp, *fp2;
+	FILE *fp;
 	const char *rmodes[] = { "r", "r+", "re", "r+e", "re+" };
 	const char *mode;
 	char buf[80];
@@ -211,7 +211,7 @@ ATF_TC_WITHOUT_HEAD(popen_rwmodes_test);
 ATF_TC_BODY(popen_rwmodes_test, tc)
 {
 	const char *rwmodes[] = { "r+", "r+e", "re+" };
-	FILE *fp, *fp2;
+	FILE *fp;
 	const char *mode;
 	char *sres;
 	char buf[80];


More information about the svn-src-head mailing list