mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
suppress unused result warning
This commit is contained in:
@@ -181,7 +181,12 @@ int load_elf(char *elff)
|
||||
fseek(fp, 0, SEEK_END);
|
||||
int size = ftell(fp);
|
||||
fseek(fp, 0, SEEK_SET);
|
||||
fread(elf, 1, size, fp);
|
||||
size_t result = fread(elf, 1, size, fp);
|
||||
if (result < 0) {
|
||||
fprintf(stderr, "Error, could not read the ELF\n");
|
||||
fclose(fp);
|
||||
return -1;
|
||||
}
|
||||
fclose(fp);
|
||||
|
||||
return size;
|
||||
|
Reference in New Issue
Block a user