| djberg96 ( @ 2008-12-18 21:16:00 |
| Current mood: | determined |
Warnings == Errors
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.