ruby-changes:1824
From: ko1@a...
Date: 30 Aug 2007 11:44:29 +0900
Subject: [ruby-changes:1824] nobu - Ruby:r13315 (trunk): * string.c (tr_trans, rb_str_squeeze_bang, rb_str_split_m): suppress
nobu 2007-08-30 11:44:20 +0900 (Thu, 30 Aug 2007) New Revision: 13315 Modified files: trunk/string.c Log: * string.c (tr_trans, rb_str_squeeze_bang, rb_str_split_m): suppress warnings. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=13315&r2=13314 Index: string.c =================================================================== --- string.c (revision 13314) +++ string.c (revision 13315) @@ -3185,7 +3185,7 @@ rb_encoding *enc; struct tr trsrc, trrepl; int cflag = 0; - int c, last, modify = 0; + int c, last = 0, modify = 0; char *s, *send; VALUE hash; @@ -3500,7 +3500,7 @@ static VALUE rb_str_squeeze_bang(int argc, VALUE *argv, VALUE str) { - rb_encoding *enc; + rb_encoding *enc = 0; VALUE del = 0, nodel = 0; char *s, *send, *t; int save, modify = 0; @@ -3759,6 +3759,7 @@ int skip = 1; int c; + end = beg; while (ptr < eptr) { c = rb_enc_codepoint(ptr, eptr, enc); if (skip) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml