1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00

unix: fix unused-result warning

This commit is contained in:
Pavol Rusnak 2017-11-06 11:12:43 +01:00
parent ee7d260d2f
commit 2e3b8336c2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -59,7 +59,8 @@ static void flash_read(void)
{ {
FILE *f = fopen(FLASH_FILE, "rb"); FILE *f = fopen(FLASH_FILE, "rb");
if (f) { if (f) {
fread(flash_buffer, sizeof(flash_buffer), 1, f); size_t r = fread(flash_buffer, sizeof(flash_buffer), 1, f);
(void)r;
fclose(f); fclose(f);
} }
} }