How to Change Compiler Options in CodeWarrior
First, open the Target Settings Dialog box in one of two ways:
1. In the Project window, there is a row of buttons at the top. The first will be labeled with the target name, which on a Mac should be "PPC Std C++ Console", and on Windows should "C++ Console App", unless you have changed it somehow. The second button has a tiny preference panel icon - a document with buttons. Click on this button.
2. Open the Edit menu. Near the bottom you should see "Preferences" - which are IDE preferences for all projects, and either "PPC Std C++ Console Settings..." or "C++ Console App Settings..." on Windows. Choose this menu item.
Either way, a dialog box labelled "PPC Std C++ Console Settings" or "C++ Console App Settings" should appear. Open the Language Settings group in the left-hand pane of the window by clicking on the triangle, if necessary, to reveal the option called "C/C++ Language." This produces a set of buttons that allow you to control a variety of compiler options.
Some useful options:
You change the "Inline" or "Inlining Depth" setting to "Don't Inline" to make it easier to debug member functions such as constructors that are defined inside a class declaration.
You can turn off annoying complaints about missing prototypes with the "Require Function Prototypes" button.
Warning: If you change some of these settings improperly, you can get a mess. The "Revert Panel" button will restore the settings to what they were when you selected the "C/C++ Language" settings panel.
For Mac Codewarrior, you can disable the precompiled headers. At the bottom is a field labelled "Prefix File:" This is a .h file that is automatically included at the beginning of every source file. The default is the precompiled headers file called "MSLHeaders++.h", which includes about a zillion commonly used header files, including advanced ones that sometimes result in confusing error messages if you mess up your declarations.
Erase the "MSLHeaders++.h", and replace it with: "ansi_prefix.mac.h" (don't type in the double quotes)
Save the settings, and then recompile your project. The compilations will take longer, but only the .h files that you have actually #included in your code will be included.
Windows Codewarrior does not appear to use precompiled headers.
Controlling warning messages
The settings for "C/C++ Warnings" is also useful to turn on and off various warning messages that indicate possible problems.