ruby-changes:56241
From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 12:28:26 +0900 (JST)
Subject: [ruby-changes:56241] Nobuyoshi Nakada: c9bbcaccf2 (trunk): Suppress unused variable warning with RUBYOPT=-w
https://git.ruby-lang.org/ruby.git/commit/?id=c9bbcaccf2 From c9bbcaccf28c2a374f6530a36355b6d6f16e25cc Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 28 Jun 2019 12:27:11 +0900 Subject: Suppress unused variable warning with RUBYOPT=-w diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb index 602773b..833b372 100644 --- a/test/objspace/test_objspace.rb +++ b/test/objspace/test_objspace.rb @@ -400,7 +400,7 @@ class TestObjSpace < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/objspace/test_objspace.rb#L400 def dump_my_heap_please ObjectSpace.trace_object_allocations_start GC.start - str = "TEST STRING".force_encoding("UTF-8") + (str = "TEST STRING").force_encoding("UTF-8") ObjectSpace.dump_all().path end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/