The solution is to be pragmatic. Most static analysis tools provide fine-grained control over which warnings are generated where (via comments embedded in the source code, for example). Very often you can get the number down to a manageable level by switching off the one or two warnings that account for the majority or by excluding a “problem” module. You can go back and fix these other warnings at a later date, but you gain most of the benefit of static analysis in the interim.
The same approach can help on the rare occasions where a buggy tool generates spurious warnings for legitimate code, where you knowingly choose to write “questionable” code, or where a third-party library generates warnings.
Source of Information : Paul Butcher - Debug it Find repair and prevent bugs
0 comments: on "How Do I Become Warning Free?"
Post a Comment