Controlling Standard C Conformance

The compiler offers settings that verify how closely your source code conforms to the ISO/IEC 9899-1990 C standard ("C90"). Enable these settings to check for possible errors or improve source code portability.

Some source code is too difficult or time-consuming to change so that it conforms to the ISO/IEC standard. In this case, disable some or all of these settings.

The following table shows how to control the compiler's features for ISO conformance.

Table 1. Controlling conformance to the ISO/IEC 9899-1990 C language
To control this option from here... use this setting
CodeWarrior IDE ANSI Strict and ANSI Keywords Only in the C/C++ Build > S12Z Compiler > Language panel.
source code

#pragma ANSI_strict

#pragma only_std_keywords

command line -ansi