1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-02-13 23:26:26 +00:00
parent d96949a4ca
commit 68c2c522fd

View file

@ -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;
}