Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2015 05:02:41 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290848 - head/lib/libc/tests/gen
Message-ID:  <201511150502.tAF52foq004187@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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];



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