5.2 Options that change the severity of compiler diagnostic messages

You can change the diagnostic severity of all remarks and warnings, and a limited number of errors.

These options let you change severities:
--diag_error=tag[, tag, ...]
Sets the diagnostic messages that have the specified tag, or tags, to Error severity.
--diag_error=warning
Upgrades all warning messages to Error severity.
--diag_remark=tag[, tag, ...]
Sets the diagnostic messages that have the specified tag, or tags, to Remark severity.
--diag_warning=tag[, tag, ...]
Sets the diagnostic messages that have the specified tag, or tags, to Warning severity.
--diag_warning=error
Sets all downgradable error messages to Warning severity.
The format tag[, tag, ...] indicates a comma-separated list of the error messages that you want to change. For example, you might want to change a warning message with the number 1293 to Remark severity, because remarks are not displayed by default.
To do this, use the following command:
armcc --diag_remark=1293 ...
Only errors with a suffix of -D following the error number can be downgraded by changing them into warnings or remarks.

Note

These options also have pragma equivalents.
The following diagnostic messages can be changed:
  • Messages with the number format #nnnn-D.
  • Warning messages with the number format CnnnnW.
It is also possible to apply changes to optimization messages as a group. For example, --diag_warning=optimizations. By default, optimization messages are remarks.
Related concepts
5.3 Controlling compiler diagnostic messages with pragmas
5.4 Prefix letters in compiler diagnostic messages
5.5 Compiler exit status codes and termination messages
5.6 Compiler data flow warnings
Related reference
5.1 Severity of compiler diagnostic messages
9.76 #pragma diag_default tag[,tag,...]
9.77 #pragma diag_error tag[,tag,...]
9.78 #pragma diag_remark tag[,tag,...]
9.79 #pragma diag_suppress tag[,tag,...]
9.80 #pragma diag_warning tag[, tag, ...]
9.94 #pragma pop
9.95 #pragma push
7.44 --diag_error=tag[,tag,...]
7.45 --diag_remark=tag[,tag,...]
7.46 --diag_style=arm|ide|gnu compiler option
7.47 --diag_suppress=tag[,tag,...]
7.48 --diag_suppress=optimizations
7.49 --diag_warning=tag[,tag,...]
7.50 --diag_warning=optimizations
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.