Fix -Wunused warnings
MFC after: 1 week X-MFC with: r290572 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
c2546a2196
commit
397f4a0de5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290848
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user