Saturday 12 November 2011

Turn Compiler Warnings Up All the Way, and Attempt to Eliminate All Warnings

Turn Compiler Warnings Up All the Way, and Attempt to Eliminate All Warnings

If you haven’t been taking this action throughout the development of your program, this could be quite a job! Although many programmers consider eliminating compiler warnings to be a tedious hassle, it is quite valuable. Most code that compilers warn about is, at the very least, questionable. And it is usually worth the effort to turn it into “safer” constructs. Furthermore, by eliminating warnings, you might get to the pointwhere the compiler is only emitting one warning—the error.

No comments:

Post a Comment