From 9ebe82fdc3335ef569707fec99269e3c59d58d0b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 27 Oct 2019 09:13:46 +0100 Subject: [PATCH] xbps-checkvers: fix a warning with glibc. found by @q66 main.c:195:8: error: ignoring return value of 'fread', declared with attribute warn_unused_result [-Werror=unused-result] --- bin/xbps-checkvers/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-checkvers/main.c b/bin/xbps-checkvers/main.c index b5ab9500..f1b0e978 100644 --- a/bin/xbps-checkvers/main.c +++ b/bin/xbps-checkvers/main.c @@ -192,7 +192,7 @@ rcv_load_file(rcv_t *rcv, const char *fname) } } - (void)fread(rcv->buf, sizeof(char), rcv->len, file); + (void)!fread(rcv->buf, sizeof(char), rcv->len, file); rcv->buf[rcv->len] = '\0'; fclose(file); rcv->ptr = rcv->buf;