aboutsummaryrefslogtreecommitdiffstats
path: root/vsnprintf.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-04-13 16:44:01 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-04-13 16:44:01 -0400
commitf7d41b9d7bd9de48293909c904e95ebc353fc200 (patch)
tree9d83616cf526deb9c8abb9a02ddaa937fbca9924 /vsnprintf.c
parentacc5c746482218ed51e602af88bb5c48f8d557d5 (diff)
downloadruby-f7d41b9d7bd9de48293909c904e95ebc353fc200.tar.gz
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]
Diffstat (limited to 'vsnprintf.c')
-rw-r--r--vsnprintf.c2
1 files changed, 1 insertions, 1 deletions
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 */