ruby-changes:47583
From: nobu <ko1@a...>
Date: Thu, 31 Aug 2017 17:04:53 +0900 (JST)
Subject: [ruby-changes:47583] nobu:r59699 (trunk): test_syntax.rb: suppress warnings
nobu 2017-08-31 17:04:49 +0900 (Thu, 31 Aug 2017) New Revision: 59699 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59699 Log: test_syntax.rb: suppress warnings * test/ruby/test_syntax.rb (TestSyntax#test_return_toplevel): suppress unreachable statement warnings. Modified files: trunk/test/ruby/test_syntax.rb Index: test/ruby/test_syntax.rb =================================================================== --- test/ruby/test_syntax.rb (revision 59698) +++ test/ruby/test_syntax.rb (revision 59699) @@ -999,7 +999,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L999 nil&defined?0--begin e=no_method_error(); return; 0;end end; all_assertions_foreach(feature4840, *code.split(/\n/)) do |s| - assert_in_out_err([], s, [*s[/#=> (.*)/, 1]], [], + assert_in_out_err(%[-W0], s, [*s[/#=> (.*)/, 1]], [], proc {RubyVM::InstructionSequence.compile(s).disasm}, success: true) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/