summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-26 03:12:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-26 03:12:25 +0000
commite4b54208d0e98677db83b92a458be6847258e54c (patch)
treea71f5a0d26df0eb4c7ea6231a716ca3f0e6ae379 /string.c
parent6a858bc109bf879b9a51c8efe17f51553b38735f (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.c3
1 files changed, 3 insertions, 0 deletions
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
}
}