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 | 56e28fcf98feea4dbac057a716002af15ac36cf8 (patch) | |
tree | 30a3dcebcdb3ba90e8b3773dbcc892711bdd9161 | |
parent | 5ffd0cc80fda095b69660fb4ae72ffd227e9f7b7 (diff) |
* 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
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/enumerator.c b/enumerator.c index c5d9f40f4c..8d95b0d9c9 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); |