diff options
author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-16 07:38:40 +0000 |
---|---|---|
committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-16 07:38:40 +0000 |
commit | 4e13d36561868d78e9e5ff9b24aba67d418c67ed (patch) | |
tree | 07808bdd94888f12e0e1b1a6f52777f213d50b91 /range.c | |
parent | 9df466b287471d386f962ea41cf49c40f2059c8b (diff) | |
download | ruby-4e13d36561868d78e9e5ff9b24aba67d418c67ed.tar.gz |
-Wall cleanups (removed unused vars, no 'code has no effect' warnings)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r-- | range.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -285,12 +285,12 @@ range_step(argc, argv, range) return range; } -static void +static VALUE each_i(v, arg) VALUE v; void *arg; { - rb_yield(v); + return rb_yield(v); } static VALUE @@ -324,7 +324,7 @@ range_each(range) rb_iterate((VALUE(*)_((VALUE)))str_step, (VALUE)args, step_i, (VALUE)iter); } else { - range_each_func(range, each_i, beg, end, 0); + range_each_func(range, each_i, beg, end, NULL); } return range; } |