From a6568c304f10cbeae566e274db6adf53d3ddfcab Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 25 Jan 2023 03:56:06 +0000 Subject: [PATCH] libeinfo: fix -Wunused-but-set-variable --- src/libeinfo/libeinfo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c index aa49e0d0..a761c731 100644 --- a/src/libeinfo/libeinfo.c +++ b/src/libeinfo/libeinfo.c @@ -677,15 +677,14 @@ ewarn(const char *EINFO_RESTRICT fmt, ...) void ewarnx(const char *EINFO_RESTRICT fmt, ...) { - int retval; va_list ap; if (fmt && !is_quiet()) { va_start(ap, fmt); elogv(LOG_WARNING, fmt, ap); - retval = _ewarnvn(fmt, ap); + _ewarnvn(fmt, ap); va_end(ap); - retval += fprintf(stderr, "\n"); + fprintf(stderr, "\n"); } exit(EXIT_FAILURE); }