1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress unused variable warning with RUBYOPT=-w

This commit is contained in:
Nobuyoshi Nakada 2019-06-28 12:27:11 +09:00
parent ff7f71b288
commit c9bbcaccf2
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -400,7 +400,7 @@ class TestObjSpace < Test::Unit::TestCase
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