From 1f506de649eea999b1235915173fdc428ca7a666 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 31 Aug 2017 08:04:49 +0000 Subject: [PATCH] test_syntax.rb: suppress warnings * test/ruby/test_syntax.rb (TestSyntax#test_return_toplevel): suppress unreachable statement warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_syntax.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 561c45a6c6..eaebbcf1bf 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -999,7 +999,7 @@ eom 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