ruby-changes:40232
From: naruse <ko1@a...>
Date: Wed, 28 Oct 2015 05:51:36 +0900 (JST)
Subject: [ruby-changes:40232] naruse:r52313 (trunk): suppress warnings: assigned but unused variable
naruse 2015-10-28 05:51:29 +0900 (Wed, 28 Oct 2015) New Revision: 52313 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52313 Log: suppress warnings: assigned but unused variable Modified files: trunk/test/ruby/test_gc.rb Index: test/ruby/test_gc.rb =================================================================== --- test/ruby/test_gc.rb (revision 52312) +++ test/ruby/test_gc.rb (revision 52313) @@ -12,10 +12,10 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L12 GC.stress = false assert_nothing_raised do + tmp = nil 1.upto(10000) { tmp = [0,1,2,3,4,5,6,7,8,9] } - tmp = nil end l=nil 100000.times { @@ -348,7 +348,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L348 end; opts = {signal: :SEGV} begin - cur, max = Process.getrlimit(:CORE) + _, max = Process.getrlimit(:CORE) opts[:rlimit_core] = [0,max] rescue NotImplementedError end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/