summaryrefslogtreecommitdiffstats
path: root/enumerator.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 13:49:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 13:49:43 +0000
commit972ebb3d2e8655454035f728e422158393c7330e (patch)
tree8376886d19205bc98aa080934adb39a59d797a86 /enumerator.c
parent58a66bb0122c285dcb9874530c028128883b7d1d (diff)
downloadruby-972ebb3d2e8655454035f728e422158393c7330e.tar.gz
ruby-972ebb3d2e8655454035f728e422158393c7330e.tar.xz
ruby-972ebb3d2e8655454035f728e422158393c7330e.zip
* enumerator.c (enumerator_each, enumerator_with_index): suppress
warnings. * pack.c (pack_unpack): ditto. * process.c (rb_syswait): ditto. * re.c (rb_reg_prepare_enc, rb_reg_prepare_re, rb_reg_adjust_startpos): ditto. * regparse.c (onig_name_to_group_numbers): ditto. * missing/vsnprintf.c (BSD_vfprintf): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/enumerator.c b/enumerator.c
index ced64bd4e..9874df897 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -300,7 +300,6 @@ enumerator_each(VALUE obj)
struct enumerator *e;
int argc = 0;
VALUE *argv = 0;
- VALUE method;
if (!rb_block_given_p()) return obj;
e = enumerator_ptr(obj);
@@ -334,7 +333,6 @@ enumerator_with_index(VALUE obj)
VALUE memo = 0;
int argc = 0;
VALUE *argv = 0;
- VALUE method;
RETURN_ENUMERATOR(obj, 0, 0);
if (e->args) {