diff options
author | Sam James <sam@gentoo.org> | 2023-01-25 03:56:06 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-25 00:49:22 -0500 |
commit | a6568c304f10cbeae566e274db6adf53d3ddfcab (patch) | |
tree | c02160069c0414eefbe2eeac7725c3e06be1a34a /src | |
parent | d6a5264a9df5a8cddb8c4ad04998618bf98f7190 (diff) |
libeinfo: fix -Wunused-but-set-variable
Diffstat (limited to 'src')
-rw-r--r-- | src/libeinfo/libeinfo.c | 5 |
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); } |