From 2e3b8336c2b51d1e9d9d01669eeeb2aa9f50b9a1 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 6 Nov 2017 11:12:43 +0100 Subject: [PATCH] unix: fix unused-result warning --- embed/unix/flash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/embed/unix/flash.c b/embed/unix/flash.c index 11595fb1fe..578e490409 100644 --- a/embed/unix/flash.c +++ b/embed/unix/flash.c @@ -59,7 +59,8 @@ static void flash_read(void) { FILE *f = fopen(FLASH_FILE, "rb"); 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); } }