removed dead code and reduce compiler warnings about unused parameters

This commit is contained in:
Axel Kohlmeyer
2019-02-03 11:36:41 -05:00
parent d6eaf73db1
commit b417cfda9b
36 changed files with 83 additions and 93 deletions

View File

@ -1963,7 +1963,7 @@ void ReadData::parse_keyword(int first)
}
while (eof == 0 && done == 0) {
int blank = strspn(line," \t\n\r");
if ((blank == strlen(line)) || (line[blank] == '#')) {
if ((blank == (int)strlen(line)) || (line[blank] == '#')) {
if (fgets(line,MAXLINE,fp) == NULL) eof = 1;
} else done = 1;
}