remove gcc compiler warnings

This commit is contained in:
Lev Walkin 2017-10-19 03:49:50 -07:00
parent 1d2a6e8b3f
commit 312e3e0f96
1 changed files with 3 additions and 1 deletions

View File

@ -252,6 +252,7 @@ process(const char *fname) {
unsigned char fbuf[4096];
char *ext = strrchr(fname, '.');
enum expectation expectation;
char *cwd;
int ret;
int rd;
FILE *fp;
@ -274,7 +275,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");