You copied the Doc URL to your clipboard.


This option sets diagnostic messages that have a specific tag to error severity.


This option has the #pragma equivalent #pragma diag_error.


For some diagnostic message numbers in the range 3000-3100, the same number can refer to two unrelated messages. ARM will address this in a future release. If you use this option, specifying such a number, it affects both messages.



Where tag can be:

  • a diagnostic message number to set to error severity

  • warning, to treat all warnings as errors.


The severity of the following types of diagnostic messages can be changed:

  • Messages with the number format #nnnn-D.

  • Warning messages with the number format CnnnnW.