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
This commit is contained in:
parent
6a858bc109
commit
e4b54208d0
3
string.c
3
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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user