summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--string.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 284aa3be68..ef5d5d5599 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Nov 27 22:03:09 2012 Akinori MUSHA <knu@iDaemons.org>
+
+ * string.c (rb_str_enumerate_chars, rb_str_enumerate_codepoints)
+ (rb_str_enumerate_lines): Dummy initialization of ary has been
+ replaced with UNINITIALIZED_VAR().
+
Tue Nov 27 21:29:00 2012 Kenta Murata <mrkn@mrkn.jp>
* bignum.c (bigdivrem): optimize the way to retry calculation of
diff --git a/string.c b/string.c
index 73afd06e8d..0c30ee4bc2 100644
--- a/string.c
+++ b/string.c
@@ -6126,7 +6126,6 @@ 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
}
}
@@ -6406,7 +6405,6 @@ rb_str_enumerate_chars(VALUE str, int wantarray)
#else
rb_warning("passing a block to String#chars is deprecated");
wantarray = 0;
- ary = 0;
#endif
}
}
@@ -6507,7 +6505,6 @@ rb_str_enumerate_codepoints(VALUE str, int wantarray)
#else
rb_warning("passing a block to String#codepoints is deprecated");
wantarray = 0;
- ary = 0;
#endif
}
}