You copied the Doc URL to your clipboard.


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

The --diag_warning option behaves analogously to --diag_error, except that the compiler sets the diagnostic messages having the specified tags to warning severity rather than error severity.

Note This option has the #pragma equivalent #pragma diag_warning.



Where tag can be:

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

  • error, to set all errors that can be downgraded to warnings.


--diag_warning=A1234,error causes message A1234 and all downgradable errors to be treated as warnings, providing changing the severity of A1234 is permitted.

Was this page helpful? Yes No