From e4b54208d0e98677db83b92a458be6847258e54c Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 26 Nov 2012 03:12:25 +0000 Subject: string.c: suppress warnings * string.c (rb_str_enumerate_{lines,chars,codepoints}): suppress uninitialized variable warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/string.c b/string.c index 68a4e46bb6..82c709ca1d 100644 --- a/string.c +++ b/string.c @@ -6126,6 +6126,7 @@ rb_str_enumerate_lines(int argc, VALUE *argv, VALUE str, int wantarray) #else rb_warning("passing a block to String#lines is deprecated"); wantarray = 0; + ary = 0; #endif } } @@ -6405,6 +6406,7 @@ rb_str_enumerate_chars(VALUE str, int wantarray) #else rb_warning("passing a block to String#chars is deprecated"); wantarray = 0; + ary = 0; #endif } } @@ -6505,6 +6507,7 @@ rb_str_enumerate_codepoints(VALUE str, int wantarray) #else rb_warning("passing a block to String#codepoints is deprecated"); wantarray = 0; + ary = 0; #endif } } -- cgit v1.2.3