You copied the Doc URL to your clipboard.

Options that change the severity of compiler diagnostic messages

These options enable you to change the diagnostic severity of all remarks and warnings, and a limited number of errors:

--diag_error=tag[, tag, ...]

Sets the diagnostic messages that have the specified tag, or tags, 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.

These options require 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.