ruby-changes:56254
From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 15:10:19 +0900 (JST)
Subject: [ruby-changes:56254] Nobuyoshi Nakada: a0c141b6d0 (trunk): Suppress redefinition and void context warnings
https://git.ruby-lang.org/ruby.git/commit/?id=a0c141b6d0 From a0c141b6d04482ebfc4b3abf3f00a476d073226a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 28 Jun 2019 15:09:14 +0900 Subject: Suppress redefinition and void context warnings diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 61c9dd0..74aae0a 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -1903,7 +1903,7 @@ class TestSetTraceFunc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L1903 end def test_lineno_in_optimized_insn - actual, _, _ = EnvUtil.invoke_ruby [], <<-EOF.gsub(/^.*?: */, ""), true + actual, _, _ = EnvUtil.invoke_ruby %W[-W0], <<-EOF.gsub(/^.*?: */, ""), true 1: class String 2: def -@ 3: puts caller_locations(1, 1)[0].lineno -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/