Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.