aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-25 03:56:06 +0000
committerMike Frysinger <vapier@gentoo.org>2023-01-25 00:49:22 -0500
commita6568c304f10cbeae566e274db6adf53d3ddfcab (patch)
treec02160069c0414eefbe2eeac7725c3e06be1a34a /src
parentd6a5264a9df5a8cddb8c4ad04998618bf98f7190 (diff)
libeinfo: fix -Wunused-but-set-variable
Diffstat (limited to 'src')
-rw-r--r--src/libeinfo/libeinfo.c5
1 files 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);
}