Edit

Share via


Command-Line Warning D9041

invalid value 'option-value' for '/option-name'; assuming 'assumed-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

Command-Line Errors D8000 Through D9999
MSVC Compiler Options