Command-Line Warning D9041

invalid value 'value' for '/option'; assuming 'value'; add '/analyze' to command-line options when specifying this warning

A Code Analysis warning number was added to the /wd, /we, /wo, or /wl command line option without also specifying the /analyze command line option. To remedy this error, either add the /analyze command line option, or remove the invalid warning number from the appropriate /w command line option.

Example

The following command line example generates the warning D9041:

cl /EHsc /LD /wd6001 filename.cpp

To fix the warning, add the /analyze command line option. If /analyze is not supported on your version of the compiler, remove the invalid warning number from the /wd option.

See Also

Reference

Compiler Options

Other Resources

Command-Line Errors D8000 Through D9999