How to clean C source code (fast)

The old tricks for cleaning your C code of most of its unwanted ugliness:

  • Run PC-Lint on the code.
  • Run LCLint on the code.
  • Run CL /W4 /Za /Ox on the code (with your usal compiler, optimization finds many bugs not found without)
  • Run GCC -O3 -Wall -ansi -pedantic on the code.