Visual Basic Compiler Options |
|
Suppresses the compiler's ability to generate warnings.
/nowarn
To set /nowarn in the Visual Studio integrated development environment
- Open the project's Property Pages dialog box. For details, see <Projectname> Property Pages Dialog Box.
- Click the Configuration Properties folder.
- Click the Build property page.
- Modify the Enable build warnings property.
To set /nowarn programmatically
- See WarningLevel Property.
Example
The following code compiles t2.vb
and does not display warnings:
vbc /nowarn t2.vb
See Also
Visual Basic Compiler Options | Sample Compilation Command Lines