mirror of
https://github.com/pspdev/pspsdk.git
synced 2026-01-23 09:39:30 +00:00
suppress unused result warning
This commit is contained in:
@@ -195,7 +195,12 @@ unsigned char *load_file(const char *file, unsigned int *size)
|
||||
break;
|
||||
}
|
||||
|
||||
(void) fread(data, 1, *size, fp);
|
||||
size_t result = fread(data, 1, *size, fp);
|
||||
if (result < 0) {
|
||||
fprintf(stderr, "Error, could not read the ELF\n");
|
||||
fclose(fp);
|
||||
break;
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user