summaryrefslogtreecommitdiff
path: root/vsnprintf.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-04 23:13:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-04 23:13:18 +0900
commit5bb80b76b093130be14161bb0c8d05f6fea749f3 (patch)
tree938e973e04144fc4bbadd8be7abc95d269309e3d /vsnprintf.c
parent364526cd70764e3f8f9137d7782ae36d5d8fe448 (diff)
downloadruby-5bb80b76b093130be14161bb0c8d05f6fea749f3.tar.gz
[win32] suppress false warning by mingw gcc
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 889c409254..3efef20cd8 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -561,7 +561,7 @@ BSD_vfprintf(FILE *fp, const char *fmt0, va_list ap)
int fprec = 0; /* floating point precision */
char expstr[7]; /* buffer for exponent string */
#endif
- u_long MAYBE_UNUSED(ulval); /* integer arguments %[diouxX] */
+ u_long MAYBE_UNUSED(ulval) = 0; /* integer arguments %[diouxX] */
#ifdef _HAVE_SANE_QUAD_
u_quad_t MAYBE_UNUSED(uqval); /* %q integers */
#endif /* _HAVE_SANE_QUAD_ */