ruby-changes:34165
From: nobu <ko1@a...>
Date: Fri, 30 May 2014 12:18:11 +0900 (JST)
Subject: [ruby-changes:34165] nobu:r46246 (trunk): printf.c: suppress warnings
nobu 2014-05-30 12:18:07 +0900 (Fri, 30 May 2014) New Revision: 46246 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=46246&view=revision Log: printf.c: suppress warnings * ext/-test-/printf/printf.c (printf_test_call): suppress maybe-uninitialized warnings. Modified files: trunk/ext/-test-/printf/printf.c Index: ext/-test-/printf/printf.c =================================================================== --- ext/-test-/printf/printf.c (revision 46245) +++ ext/-test-/printf/printf.c (revision 46246) @@ -44,8 +44,8 @@ printf_test_call(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/ext/-test-/printf/printf.c#L44 { VALUE opt, type, num, result; char format[sizeof(int) * 6 + 8], *p = format, cnv; - int n; - const char *s; + int n = 0; + const char *s = 0; rb_scan_args(argc, argv, "2:", &type, &num, &opt); Check_Type(type, T_STRING); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/