Turn on all compiler warnings

This tip submitted by Maragato on 2005-01-19 20:44:14. It has been viewed 23134 times.
Rating of 5.2 with 195 votes

When compiling projects, turn on all compiler warnings (e.g., when using gcc or g++, use the -Wall flag) to see all warnings to avoid later problems. Fixing all the warnings will allow you to have the clearest and least buggy code you can have.

More tips

Help your fellow programmers! Add a tip!