1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (rb_f_open), re.c (rb_reg_search), transcode.c (str_transcode):

suppress warnings.

* util.c (quorem, rv_alloc, nrv_alloc): only used in dtoa().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-06-07 12:38:03 +00:00
parent 126abc5c47
commit 0455e8ea9a
5 changed files with 15 additions and 5 deletions

View file

@ -309,7 +309,7 @@ str_transcode(int argc, VALUE *argv, VALUE *self)
return -1;
}
while (!final_encoding) { /* loop for multistep transcoding */
do { /* loop for multistep transcoding */
/* later, maybe use smaller intermediate strings for very long strings */
if (!(my_transcoder = transcode_dispatch(from_e, to_e))) {
rb_raise(rb_eArgError, "transcoding not supported (from %s to %s)", from_e, to_e);
@ -372,7 +372,7 @@ str_transcode(int argc, VALUE *argv, VALUE *self)
from_e = my_transcoder->to_encoding;
str = dest;
}
}
} while (!final_encoding);
/* set encoding */
if (!to_enc) {
to_encidx = rb_define_dummy_encoding(to_e);