[前][次][番号順一覧][スレッド一覧]

ruby-changes:41617

From: naruse <ko1@a...>
Date: Sat, 30 Jan 2016 00:20:56 +0900 (JST)
Subject: [ruby-changes:41617] naruse:r53691 (trunk): suppress warning: assigned but unused variable

naruse	2016-01-30 00:21:52 +0900 (Sat, 30 Jan 2016)

  New Revision: 53691

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53691

  Log:
    suppress warning: assigned but unused variable

  Modified files:
    trunk/test/lib/iseq_loader_checker.rb
Index: test/lib/iseq_loader_checker.rb
===================================================================
--- test/lib/iseq_loader_checker.rb	(revision 53690)
+++ test/lib/iseq_loader_checker.rb	(revision 53691)
@@ -43,7 +43,7 @@ class RubyVM::InstructionSequence https://github.com/ruby/ruby/blob/trunk/test/lib/iseq_loader_checker.rb#L43
 
   def self.translate i1
     # check to_a/load_iseq
-    i2_ary = compare_dump_and_load(i1,
+    compare_dump_and_load(i1,
                                    proc{|iseq|
                                      ary = iseq.to_a
                                      ary[9] == :top ? ary : nil
@@ -57,7 +57,7 @@ class RubyVM::InstructionSequence https://github.com/ruby/ruby/blob/trunk/test/lib/iseq_loader_checker.rb#L57
                                    proc{|iseq|
                                      begin
                                        iseq.to_binary
-                                     rescue RuntimeError => e # not a toplevel
+                                     rescue RuntimeError # not a toplevel
                                        # STDERR.puts [:failed, e, iseq].inspect
                                        nil
                                      end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]