http://qs321.pair.com?node_id=1183760


in reply to Re^2: use warnings and debug messages
in thread use warnings and debug messages

Isn't "turning them on" a fairly cheap price of doing business?

Clearly, your problem case suggests that an option might be to "use warnings" after you've dealt with the more significant warnings errors/problems that are apt to turn up in new code... and even then, the price of going thru "tons" of code to check the then-new onslaught of warnings seems to me to be insignificant compared to the price of an error that gives away your product or that causes a client to suffer harm.

And one more thought:

If that seems too expensive, or the types of warnings are more diverse than you feel you can afford to deal with, perhaps its time to consider that the cost of selectively inserting "no warnings uninitialized" suggested by Vicar Eily is likely to be NO HIGHER and to pay the bonus of being clearer.

Edit: Strike/corrected language in para 1; fixed markup on "code smell" and fixed "that" to "than" in final para.


Spirit of the Monastery

... but, check Ln42!