gcc -Wall -WeReallyMeanIt
Following up on a problem I mentioned long ago, (“Ranum on the Root of the Problem“) that gcc’s -Wall doesn’t actually run all the analysis it could. Apple has a great page “Improving Your Software With Xcode and Static Analysis Techniques” (I believe that this is a mirror of that page, see section 5) that lists all of the things that gcc’s -Wall, -Wextra and -Wmost don’t catch. A great resource. Via Red Sweater Links.