Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.24 KB

command-line-warning-d9041.md

File metadata and controls

28 lines (20 loc) · 1.24 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Command-Line Warning D9041
Command-Line Warning D9041
11/04/2016
D9041
D9041
ada8815f-4246-4e25-b57d-a7f16fa107cc

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