diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-26 03:12:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-26 03:12:25 +0000 |
commit | e4b54208d0e98677db83b92a458be6847258e54c (patch) | |
tree | a71f5a0d26df0eb4c7ea6231a716ca3f0e6ae379 /string.c | |
parent | 6a858bc109bf879b9a51c8efe17f51553b38735f (diff) |
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
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 } } |