C1XX -ignorePragmaWarningError


The option has no arguments. It is -ignorePragmaWarningError only.

This option is not recognised on the CL command line, but can be passed to C1XX through the CL /d1 option, giving ignorePragmaWarningError as its argument.


The -ignorePragmaWarningError option defeats two methods of promoting warnings to errors.

The effect suggested by the name applies to #pragma warning (error : numbers) directives in source code. Instead of promoting the given warning numbers to errors, the pragma now sets them to level 1, as if the directive had instead been #pragma warning (1 : numbers).

A second effect is to cancel the command-line option -WX.

The -ignorePragmaWarningError option does not affect promotion of a warning to an error through the -we command-line option.