summaryrefslogtreecommitdiff
path: root/ext/coverage/coverage.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-13 23:26:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-13 23:26:26 +0000
commit68c2c522fd0f694da9e3a068ee0eeb6abb253f79 (patch)
tree6144c7ac74ea0cbeded4b9ae0d3a42353e157166 /ext/coverage/coverage.c
parentd96949a4cae2c4df012c97001d9ac8b2ffc27f2a (diff)
coverage.c: suppress a warning
* ext/coverage/coverage.c (coverage_clear_result_i): use local variable coverage. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/coverage/coverage.c')
-rw-r--r--ext/coverage/coverage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c
index af0cb87..ed4a69d 100644
--- a/ext/coverage/coverage.c
+++ b/ext/coverage/coverage.c
@@ -36,7 +36,7 @@ static int
coverage_clear_result_i(st_data_t key, st_data_t val, st_data_t h)
{
VALUE coverage = (VALUE)val;
- rb_ary_clear((VALUE)val);
+ rb_ary_clear(coverage);
return ST_CONTINUE;
}