diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-26 08:13:19 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-26 08:13:19 +0000 |
commit | 6746eecaf132cd2b4f4fed85e9bb66c4f655eb2e (patch) | |
tree | d0d3f3d1b41336f1344465a66c029c7912e38331 /string.c | |
parent | f150ed1532e727c409cc018a98e1362a8c71242c (diff) | |
download | ruby-6746eecaf132cd2b4f4fed85e9bb66c4f655eb2e.tar.gz |
* string.c (rb_str_enumerate_chars, rb_str_enumerate_codepoints)
(rb_str_enumerate_lines): suppress "may be used uninitialized in
this function" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6109,7 +6109,7 @@ rb_str_enumerate_lines(int argc, VALUE *argv, VALUE str, int wantarray) VALUE line; int n; VALUE orig = str; - VALUE ary; + VALUE UNINITIALIZED_VAR(ary); if (argc == 0) { rs = rb_rs; @@ -6396,7 +6396,7 @@ rb_str_enumerate_chars(VALUE str, int wantarray) long i, len, n; const char *ptr; rb_encoding *enc; - VALUE ary; + VALUE UNINITIALIZED_VAR(ary); if (rb_block_given_p()) { if (wantarray) { @@ -6494,7 +6494,7 @@ rb_str_enumerate_codepoints(VALUE str, int wantarray) unsigned int c; const char *ptr, *end; rb_encoding *enc; - VALUE ary; + VALUE UNINITIALIZED_VAR(ary); if (single_byte_optimizable(str)) return rb_str_enumerate_bytes(str, wantarray); |