mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enumerator.c (enumerator_with_object): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5ffd0cc80f
commit
56e28fcf98
1 changed files with 2 additions and 0 deletions
|
@ -491,6 +491,8 @@ Init_Enumerator(void)
|
|||
rb_define_method(rb_cEnumerator, "with_index", enumerator_with_index, 0);
|
||||
#if 0
|
||||
rb_define_method(rb_cEnumerator, "with_object", enumerator_with_object, 1);
|
||||
#else
|
||||
(void)enumerator_with_object;
|
||||
#endif
|
||||
rb_define_method(rb_cEnumerator, "next", enumerator_next, 0);
|
||||
rb_define_method(rb_cEnumerator, "rewind", enumerator_rewind, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue