diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-21 20:26:25 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-21 20:26:25 +0000 |
| commit | e813e5a807c1558496185699d20fb26a05c9c1d8 (patch) | |
| tree | 30a3dcebcdb3ba90e8b3773dbcc892711bdd9161 | |
| parent | 9ae6f03b3496c5b05d7b3607f777bb3b113eeee7 (diff) | |
| download | ruby-e813e5a807c1558496185699d20fb26a05c9c1d8.tar.gz ruby-e813e5a807c1558496185699d20fb26a05c9c1d8.tar.xz ruby-e813e5a807c1558496185699d20fb26a05c9c1d8.zip | |
* enumerator.c (enumerator_with_object): suppress a warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | enumerator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/enumerator.c b/enumerator.c index c5d9f40f4..8d95b0d9c 100644 --- a/enumerator.c +++ b/enumerator.c @@ -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); |
