libeinfo: fix -Wunused-but-set-variable

This commit is contained in:
Sam James 2023-01-25 03:56:06 +00:00 committed by Mike Frysinger
parent d6a5264a9d
commit a6568c304f

View File

@ -677,15 +677,14 @@ ewarn(const char *EINFO_RESTRICT fmt, ...)
void void
ewarnx(const char *EINFO_RESTRICT fmt, ...) ewarnx(const char *EINFO_RESTRICT fmt, ...)
{ {
int retval;
va_list ap; va_list ap;
if (fmt && !is_quiet()) { if (fmt && !is_quiet()) {
va_start(ap, fmt); va_start(ap, fmt);
elogv(LOG_WARNING, fmt, ap); elogv(LOG_WARNING, fmt, ap);
retval = _ewarnvn(fmt, ap); _ewarnvn(fmt, ap);
va_end(ap); va_end(ap);
retval += fprintf(stderr, "\n"); fprintf(stderr, "\n");
} }
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }