On Sat, 2015-01-17, Louis Krupp wrote:
...
> I recommend -Werr as well as -Wall. If you can get your code to
> compile with no warnings, you don't need to worry about which ones to
> fix and which to ignore.
I recommend /not/ using -Werror. I've lost countless hours/worked
late nights because of it -- an unused function or variable causing a
multi-hour compilation job to abort, when someone desperately neeed
the resulting binary.
The theory is that programmers are like children, and without that
flag you'd have chaos: noone would care about compiler warnings and
there would be thousands of them. I find that cynical: I prefer to
put trust in people, and to believe most want to do a good job, and be
proud of their craftmanship.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/
snipabacken.se> O o .