diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-15 05:02:41 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-15 05:02:41 +0000 |
commit | f6f0f8a22ff8ab074208d24c5cdcd651f6e5f0be (patch) | |
tree | 553a7525c1b268c850e5db1e247eaa455173c0f6 /lib/libc | |
parent | 7cf15411bb23db62e4fb85d36f50f3d15371cc06 (diff) | |
download | FreeBSD-src-f6f0f8a22ff8ab074208d24c5cdcd651f6e5f0be.zip FreeBSD-src-f6f0f8a22ff8ab074208d24c5cdcd651f6e5f0be.tar.gz |
Fix -Wunused warnings
MFC after: 1 week
X-MFC with: r290572
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/tests/gen/ftw_test.c | 1 | ||||
-rw-r--r-- | lib/libc/tests/gen/popen_test.c | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/tests/gen/ftw_test.c b/lib/libc/tests/gen/ftw_test.c index a778eca..b120f01 100644 --- a/lib/libc/tests/gen/ftw_test.c +++ b/lib/libc/tests/gen/ftw_test.c @@ -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 diff --git a/lib/libc/tests/gen/popen_test.c b/lib/libc/tests/gen/popen_test.c index 73f72e1..5c615b7 100644 --- a/lib/libc/tests/gen/popen_test.c +++ b/lib/libc/tests/gen/popen_test.c @@ -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]; |