You copied the Doc URL to your clipboard.


Suppresses diagnostic messages that have a specific tag.

Behaves analogously to --diag_error, except that the compiler suppresses the diagnostic messages having the specified tags rather than setting them to have Error severity.


This option has the #pragma equivalent #pragma diag_suppress.

--diag_suppress= tag[,tag,…]

Where tag can be:

  • A diagnostic message number to be suppressed.

  • error, to suppress all errors that can be downgraded.

  • warning, to suppress all warnings.

Was this page helpful? Yes No