* 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
This commit is contained in:
akr 2010-08-10 12:02:52 +00:00
parent 2f8ddcd8cd
commit e6f6033b16
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Tue Aug 10 20:56:31 2010 Tanaka Akira <akr@fsij.org>
* lib/optparse.rb: suppress a warning.
* test/test_mutex_m.rb: ditto.
Tue Aug 10 20:56:13 2010 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/format.rb (Date::Format::Bag): use Struct.

View File

@ -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

View File

@ -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 {