diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-10 12:02:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-10 12:02:52 +0000 |
commit | e6f6033b16a64eb04f2e8c3ea970356a61ac1621 (patch) | |
tree | 9128790f950ab7d8fccab7c5240dafffbd60d045 | |
parent | 2f8ddcd8cd324b23b291de1d21a63dd2dc6f2910 (diff) |
* lib/optparse.rb: suppress a warning.
* test/test_mutex_m.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/optparse.rb | 2 | ||||
-rw-r--r-- | test/test_mutex_m.rb | 1 |
3 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Tue Aug 10 20:56:31 2010 Tanaka Akira <[email protected]> + + * lib/optparse.rb: suppress a warning. + + * test/test_mutex_m.rb: ditto. + Tue Aug 10 20:56:13 2010 Tadayoshi Funaba <[email protected]> * lib/date/format.rb (Date::Format::Bag): use Struct. diff --git a/lib/optparse.rb b/lib/optparse.rb index b07d91ef6c..4f631fbec6 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1072,7 +1072,7 @@ class OptionParser default_style = Switch::NoArgument default_pattern = nil klass = nil - n, q, a = nil + q, a = nil opts.each do |o| # argument class diff --git a/test/test_mutex_m.rb b/test/test_mutex_m.rb index ab8927dd0f..a29f3f44b5 100644 --- a/test/test_mutex_m.rb +++ b/test/test_mutex_m.rb @@ -5,6 +5,7 @@ require 'mutex_m' class TestMutexM < Test::Unit::TestCase def test_cv_wait o = Object.new + o.instance_variable_set(:@foo, nil) o.extend(Mutex_m) c = ConditionVariable.new t = Thread.start { |