Hi,

I was just looking for the origin of ugly warnings in a ruby
script. Tracked this back to one of the ruby libraries (ruby 1.8.4):

% ruby -w /usr/lib/ruby/1.8/mathn.rb
/usr/lib/ruby/1.8/mathn.rb:19: warning: method redefined; discarding old gcd2
/usr/lib/ruby/1.8/mathn.rb:109: warning: discarding old /
/usr/lib/ruby/1.8/mathn.rb:113: warning: discarding old /
/usr/lib/ruby/1.8/mathn.rb:119: warning: method redefined; discarding old inspect
/usr/lib/ruby/1.8/mathn.rb:232: warning: method redefined; discarding old sqrt



While it is obvious that mathn needs to redefine some functions, it's
still ugly. Any idea how to avoid the warnings and still keeping
things under ruby -w ?

regards
Hadmut