summaryrefslogtreecommitdiff
path: root/test/objspace/test_objspace.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2023-05-10 23:49:44 +0900
committerYusuke Endoh <mame@ruby-lang.org>2023-05-10 23:49:44 +0900
commita19fa9b2bd94097e973fbdca48722c80b4d9b19f (patch)
treeedd9d948de76cdf19eec4c88dd3bd259c0702c92 /test/objspace/test_objspace.rb
parent2d9bc3efe57fe0ec1a8171340c950fb98ca8c8f2 (diff)
Prevent warning: assigned but unused variable
http://rubyci.s3.amazonaws.com/debian10/ruby-master/log/20230510T123003Z.log.html.gz ``` /home/chkbuild/chkbuild/tmp/build/20230510T123003Z/ruby/test/objspace/test_objspace.rb:224: warning: assigned but unused variable - c4 /home/chkbuild/chkbuild/tmp/build/20230510T123003Z/ruby/test/ruby/test_class.rb:362: warning: assigned but unused variable - e /home/chkbuild/chkbuild/tmp/build/20230510T123003Z/ruby/test/ruby/test_process.rb:2602: warning: assigned but unused variable - parent_pid ```
Diffstat (limited to 'test/objspace/test_objspace.rb')
-rw-r--r--test/objspace/test_objspace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index ee334fd58a..172bd6fff6 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -221,7 +221,7 @@ class TestObjSpace < Test::Unit::TestCase
o4 =
# This line intentionally left blank
# This line intentionally left blank
- 1.0 / 0.0; line4 = __LINE__; c4 = GC.count
+ 1.0 / 0.0; line4 = __LINE__; _c4 = GC.count
assert_equal(__FILE__, ObjectSpace.allocation_sourcefile(o4))
assert_equal(line4, ObjectSpace.allocation_sourceline(o4))