From 279aaaf9a43fb39a2ce407724b548e02bc4c887c Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 30 May 2014 03:18:07 +0000 Subject: [PATCH] printf.c: suppress warnings * ext/-test-/printf/printf.c (printf_test_call): suppress maybe-uninitialized warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/-test-/printf/printf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/-test-/printf/printf.c b/ext/-test-/printf/printf.c index 1ebe80411b..336f918986 100644 --- a/ext/-test-/printf/printf.c +++ b/ext/-test-/printf/printf.c @@ -44,8 +44,8 @@ printf_test_call(int argc, VALUE *argv, VALUE self) { 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);