Fix compiler warnings about unused result
This commit is contained in:
@@ -163,7 +163,7 @@ int get_score_high() {
|
|||||||
if (fd == NULL)
|
if (fd == NULL)
|
||||||
fd = fopen(HISCORE_FILE, "w+");
|
fd = fopen(HISCORE_FILE, "w+");
|
||||||
|
|
||||||
fscanf(fd, "%d", &s);
|
if (fscanf(fd, "%d", &s) == 1) {};
|
||||||
fclose(fd);
|
fclose(fd);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user