ruby-changes:37510
From: nobu <ko1@a...>
Date: Sat, 14 Feb 2015 08:26:41 +0900 (JST)
Subject: [ruby-changes:37510] nobu:r49591 (trunk): coverage.c: suppress a warning
nobu 2015-02-14 08:26:26 +0900 (Sat, 14 Feb 2015) New Revision: 49591 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49591 Log: coverage.c: suppress a warning * ext/coverage/coverage.c (coverage_clear_result_i): use local variable coverage. Modified files: trunk/ext/coverage/coverage.c Index: ext/coverage/coverage.c =================================================================== --- ext/coverage/coverage.c (revision 49590) +++ ext/coverage/coverage.c (revision 49591) @@ -36,7 +36,7 @@ static int https://github.com/ruby/ruby/blob/trunk/ext/coverage/coverage.c#L36 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/