|Non-Confidential||PDF version||ARM DUI0496M|
|Home > C and C++ Compiler Errors and Warnings > Suppressing armcc error and warning messages|
You can use command-line options to control the severity of the diagnostic messages that the compiler produces.
The compiler normally warns of potential portability problems and other hazards.
When porting legacy code (for example, in old-style C) to the ARM® Compiler, many warnings might be
reported. It might be tempting to disable all such warnings with
–W. ARM recommends however that for portability reasons, you change the code to
make it ANSI compatible rather than suppressing the warnings.
Some warnings are suppressed by default. To override this,
--strict_warnings switch to enable all
By default, optimization messages, for example most of the messages between 1593 and 2159,
are not warnings. To treat optimization messages as warnings, use the