This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: Warnings == Errors
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
I see Piers has discovered that Rails doesn't run -w clean, and it's not alone.
I feel your pain Piers.
Here's the template for all of my Rake test tasks. You should take heed:
desc "Run the test suite"
Rake::TestTask.new("test") do |t|
t.warning = true
t.verbose = true
# ...
end
A few incredibly obnoxious gcc warnings aside, if you treat warnings as errors you're going to end up with better code, and you might just spot a few bugs to boot.