diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-17 01:04:09 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-17 01:04:09 +0000 |
commit | 86d72ac7cfcf5211fb6d2314df6e6d8601ff859b (patch) | |
tree | 2d39520658531c89eed43988199766e721750ceb /test/ruby | |
parent | 4ac263ce680169626d150778e150a0b006ad70fb (diff) | |
download | ruby-86d72ac7cfcf5211fb6d2314df6e6d8601ff859b.tar.gz |
Revert "* parse.y (warn_unused_var): warn unused variables."
This reverts commit r28339 and r28340
because they prevents test-all on boron.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index b219e43663..683677c160 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -415,10 +415,4 @@ class TestRubyOptions < Test::Unit::TestCase ensure t.close(true) if t end - - def test_unused_variable - feature3446 = '[ruby-dev:41620]' - assert_in_out_err(["-we", "a=1"], "", [], ["-e:1: warning: assigned but unused variable a"], feature3446) - assert_in_out_err(["-we", "1.times do\n a=1\nend"], "", [], ["-e:2: warning: assigned but unused variable a"], feature3446) - end end |