Ruby 1.9.0 warnings

S

Suraj Kurapati

Hello,

It pains me to see Ruby warnings originating from code in the standard
Ruby distribution. It seems some developers of the Ruby standard
libraries do not run Ruby with the "-w" option (or do not set their
RUBYOPT environment variable to "-w").

So let us bring these atrocities(!) to their attention by posting (to
this thread) any warnings we see originating from the Ruby 1.9.0 code
base.

To start us off, here are some warnings I see when running irb 1.9.0:

$ irb
/lib/ruby/1.9.0/irb/context.rb:167: warning: method redefined;
discarding old irb_name
/lib/ruby/1.9.0/irb/completion.rb:165: warning: shadowing outer local
variable - m
/lib/ruby/1.9.0/irb/ext/save-history.rb:32: warning: method redefined;
discarding old save_history=
RUBY_VERSION => "1.9.0"
ENV['RUBYOPT']
=> "-w"

Thanks for your consideration.
 
S

Suraj Kurapati

In rdoc:

/lib/ruby/1.9.0/rdoc/code_objects.rb:239: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/code_objects.rb:283: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/code_objects.rb:286: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/code_objects.rb:500: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/code_objects.rb:512: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/generators/html_generator.rb:1122: warning:
instance variable @viewer not initialized
/lib/ruby/1.9.0/rdoc/generators/html_generator.rb:371: warning: instance
variable @comment not initialized
/lib/ruby/1.9.0/rdoc/generators/html_generator.rb:458: warning: instance
variable @viewer not initialized
/lib/ruby/1.9.0/rdoc/generators/html_generator.rb:473: warning: instance
variable @src_url not initialized
/lib/ruby/1.9.0/rdoc/generators/html_generator.rb:502: warning: instance
variable @section not initialized
/lib/ruby/1.9.0/rdoc/generators/html_generator.rb:515: warning: instance
variable @section not initialized
/lib/ruby/1.9.0/rdoc/generators/html_generator.rb:558: warning: instance
variable @viewer not initialized
/lib/ruby/1.9.0/rdoc/generators/html_generator.rb:695: warning: instance
variable @comment not initialized
/lib/ruby/1.9.0/rdoc/markup/simple_markup/inline.rb:249: warning: global
variable `$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/markup/simple_markup/inline.rb:254: warning: global
variable `$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/markup/simple_markup/inline.rb:259: warning: global
variable `$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/markup/simple_markup/inline.rb:287: warning: global
variable `$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1669: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1676: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1683: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1694: warning: instance
variable @extra_accessors not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1713: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1714: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1849: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2017: warning: instance
variable @params not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2045: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2101: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2172: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2254: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2289: warning: instance
variable @params not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2563: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2601: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:26: warning: global variable
`$DEBUG_RDOC' not initialized
/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:547: warning: global variable
`$DEBUG_RDOC' not initialized
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top