Share via


MSC_WARNING_LEVEL

Use the MSC_WARNING_LEVEL macro to set the warning level to use on the compiler.

In the Windows Driver Kit (WDK), the default value is /W3.

If your code is generating too many warnings, you might want to change MSC_WARNING_LEVEL to /W1.

After your code builds without errors, you might want to change MSC_WARNING_LEVEL to /W3/WX. This causes warnings to show as errors.

You can override the generic MSC_WARNING_LEVEL macro with one of these platform-specific macros:

When the Build utility runs, it first checks for the platform-specific optimization macro. If this is not defined, it checks for MSC_WARNING_LEVEL.

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011