remove gcc compiler warnings

This commit is contained in:
Lev Walkin 2017-10-19 03:39:23 -07:00
parent c547661e3c
commit 435469ec33
2 changed files with 6 additions and 2 deletions

View File

@ -156,6 +156,7 @@ process(const char *fname) {
unsigned char fbuf[4096];
char *ext = strrchr(fname, '.');
enum expectation expectation;
char *cwd;
int ret;
int rd;
FILE *fp;
@ -176,7 +177,8 @@ process(const char *fname) {
fprintf(stderr, "\nProcessing file [../%s]\n", fname);
getcwd(prevdir, sizeof(prevdir));
cwd = getcwd(prevdir, sizeof(prevdir));
assert(cwd != NULL);
ret = chdir(SRCDIR_S "/data-62");
assert(ret == 0);
fp = fopen(fname, "r");

View File

@ -233,6 +233,7 @@ process(const char *fname) {
unsigned char fbuf[4096];
char *ext = strrchr(fname, '.');
enum expectation expectation;
char *cwd;
int ret;
int rd;
FILE *fp;
@ -253,7 +254,8 @@ process(const char *fname) {
fprintf(stderr, "\nProcessing file [../%s]\n", fname);
getcwd(prevdir, sizeof(prevdir));
cwd = getcwd(prevdir, sizeof(prevdir));
assert(cwd != NULL);
ret = chdir(SRCDIR_S "/data-70");
assert(ret == 0);
fp = fopen(fname, "r");