From 534344ce355777c4e93f1bc666b95e70238bef5e Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 25 Jun 2022 16:19:56 +0200 Subject: [PATCH] [error] suppress warning --- src/util/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/error.c b/src/util/error.c index a842689a..bcc41760 100644 --- a/src/util/error.c +++ b/src/util/error.c @@ -150,7 +150,7 @@ elinks_assertm(int x, const char *fmt, ...) if (!(assert_failed = !x)) return; va_start(params, fmt); - vasprintf((char **) &buf, fmt, params); + (void)!vasprintf((char **) &buf, fmt, params); va_end(params); elinks_internal("assertion failed: %s", buf); if (buf) free(buf);