You copied the Doc URL to your clipboard.

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

Sets diagnostic messages that have a specific tag to Error severity.

Note

This option has the #pragma equivalent #pragma diag_error.

Syntax

--diag_error=tag[,tag,…]

Where tag can be:

  • A diagnostic message number to set to error severity. This is the four-digit number, nnnn, with the tool letter prefix, but without the letter suffix indicating the severity.

  • warning, to treat all warnings as errors.

Usage

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.

Was this page helpful? Yes No