aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-29 15:21:52 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-29 15:21:52 +0000
commit9e59c01cc8d0dbaa4a526f78e9dd5989bb8afc11 (patch)
tree96c39950a229414113b695374a11b1f4363c1dd2 /test/lib
parentfc3011342287d37930742f24054254bd8febd856 (diff)
downloadruby-9e59c01cc8d0dbaa4a526f78e9dd5989bb8afc11.tar.gz
suppress warning: assigned but unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/iseq_loader_checker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/iseq_loader_checker.rb b/test/lib/iseq_loader_checker.rb
index 675b6580d6..8fdbca341e 100644
--- a/test/lib/iseq_loader_checker.rb
+++ b/test/lib/iseq_loader_checker.rb
@@ -43,7 +43,7 @@ class RubyVM::InstructionSequence
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
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