From 42166c6266a50f59613c9404e6f790f6d1991cb7 Mon Sep 17 00:00:00 2001 From: normal Date: Sat, 1 Apr 2017 22:18:25 +0000 Subject: [PATCH] test/ruby/test_optimization.rb: quiet warnings This quiets an old "assigned but unused variable" warning left over after r56653 as well as two new "ambiguous first argment" warnings introduced in r58233. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_optimization.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index 2de1db340f..3303751745 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -338,7 +338,7 @@ STDOUT.flush foo EOF EOS - status, err = EnvUtil.invoke_ruby([], "", true, true, {}) { + status, _err = EnvUtil.invoke_ruby([], "", true, true, {}) { |in_p, out_p, err_p, pid| in_p.write(script) in_p.close @@ -507,7 +507,7 @@ EOS insn = iseq.disasm assert_match %r{putobject\s+#{Regexp.quote('"1.8.0"..."1.8.8"')}}, insn assert_match %r{putobject\s+#{Regexp.quote('"2.0.0".."2.3.2"')}}, insn - assert_no_match /putstring/, insn - assert_no_match /newrange/, insn + assert_no_match(/putstring/, insn) + assert_no_match(/newrange/, insn) end end