/warn (Specify Warning Level) (C# Compiler Options)
Visual Studio 2008
The /warn option specifies the warning level for the compiler to display.
/warn:option
To get information about an error or warning, you can look up the error code in the Help Index. For other ways to get information about an error or warning, see How to: Locate Help for Compiler Errors.
Use /warnaserror to treat all warnings as errors. Use /nowarn to disable certain warnings.
/w is the short form of /warn.
To set this compiler option in the Visual Studio development environment
Open the project's Properties page.
Click the Build property page.
Modify the Warning Level property.
For information on how to set this compiler option programmatically, see WarningLevel.