diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-10-25 20:45:05 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-10-25 20:45:05 +0900 |
commit | 1eac38c6093a03688c2f046cfb6a16028b9395f5 (patch) | |
tree | 7ca91c74015f19b5c1e30c641346427b9a72ce08 /test | |
parent | 7da9c25aa48c5783f8c9ad9ca4a72dd246871a98 (diff) |
test/ruby/test_rubyvm.rb: prevent "assigned but unused variable" warnings
http://rubyci.s3.amazonaws.com/centos7/ruby-master/log/20211025T093004Z.log.html.gz
```
[ 4896/21159] TestRubyVM#test_keep_script_lines(none):3: warning: assigned but unused variable - b
(none):6: warning: assigned but unused variable - c
(none):1: warning: assigned but unused variable - a
<compiled>:3: warning: assigned but unused variable - b
(none):3: warning: assigned but unused variable - b
(none):6: warning: assigned but unused variable - c
(none):1: warning: assigned but unused variable - a
<compiled>:3: warning: assigned but unused variable - b
```
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rubyvm.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_rubyvm.rb b/test/ruby/test_rubyvm.rb index a6d0b1a727..7d4588a165 100644 --- a/test/ruby/test_rubyvm.rb +++ b/test/ruby/test_rubyvm.rb @@ -18,12 +18,12 @@ class TestRubyVM < Test::Unit::TestCase def parse_and_compile script = <<~RUBY - a = 1 + _a = 1 def foo - b = 2 + _b = 2 end 1.times{ - c = 3 + _c = 3 } RUBY |