Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Reference
C/C++ Languages
Pragma Directives
warning
 Compiler Warnings That Are Off by D...
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
C/C++ Preprocessor Reference
Compiler Warnings That Are Off by Default

The compiler includes warnings that are off by default. If a warning is off by default, most users would not want to see it.

A warning that is off by default can be enabled in one of several ways:

#pragma warning(default : warning_number)

The warning is enabled at its default level. Documentation for the warning contains the default level of the warning.

#pragma warning( warning_level : warning_number)

The warning is enabled at the specified level (warning_level).

/Wall

/Wall enables all warnings that are off by default.

The following warnings are off by default:

Reference

warning

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker