Monday, May 16, 2011

Turn on all compiler warnings

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.