Fix compiler warnings about unused result

This commit is contained in:
Björn Esser 2014-11-03 10:45:21 +01:00
parent dfcc1f5634
commit 27fd8b3218

View File

@ -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;
} }