From f7d41b9d7bd9de48293909c904e95ebc353fc200 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 13 Apr 2023 16:44:01 -0400 Subject: Fix compiler warning with compiling on 32 bit Fixes this compiler warning: vsnprintf.c:1074:43: warning: 'uqval' may be used uninitialized in this function [-Wmaybe-uninitialized] --- vsnprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vsnprintf.c') diff --git a/vsnprintf.c b/vsnprintf.c index cfb8365caa..212bb06c5e 100644 --- a/vsnprintf.c +++ b/vsnprintf.c @@ -552,7 +552,7 @@ BSD_vfprintf(FILE *fp, const char *fmt0, va_list ap) #endif u_long MAYBE_UNUSED(ulval) = 0; /* integer arguments %[diouxX] */ #ifdef _HAVE_SANE_QUAD_ - u_quad_t MAYBE_UNUSED(uqval); /* %q integers */ + u_quad_t MAYBE_UNUSED(uqval) = 0; /* %q integers */ #endif /* _HAVE_SANE_QUAD_ */ int base; /* base for [diouxX] conversion */ int dprec; /* a copy of prec if [diouxX], 0 otherwise */ -- cgit v1.2.3