From: Michael Davis Date: 2003-07-30T04:02:28+09:00 Subject: Re: Warnings? How about a way to trap warnings similar to rescue Exception so we can trap and suppress certain expected warnings? Thanks, Michael Davis Yukihiro Matsumoto wrote: > Hi, > > In message "Warnings?" > on 03/07/29, Tim Bates writes: > > |I've recently got around to reinstating some of my old Ruby apps after a > |system upgrade, part of which involved an upgrade from 1.6 to 1.8pre3. > |Some of the libraries used in these apps were written for 1.6, and now > |they spew out loads of warnings. I seem to remember something about > |warnings being on by default in a planned future version of Ruby, but I > |didn't think it was as soon as 1.8 - however, regardless of whether this > |is the case or not, how do I turn them off? Remember that it's not my > |code, so I'm not about to go through and correct all the warnings. The > |libraries still function correctly. > > You've inspired me to add a way to stop all warnings. In the near > future release, -W0 stops all warnings. > > matz. > > >