/nenhumaviso
Suppresses the compiler's ability to generate warnings.
/nowarn[:numberList]
Arguments
Term |
Definition |
numberList |
Optional. Comma-delimited list of the warning ID numbers that the compiler should suppress. If the warning IDs are not specified, all warnings are suppressed. |
Comentários
The /nowarn option causes the compiler to not generate warnings. To suppress an individual warning, supply the warning ID to the /nowarn option following the colon. Separate multiple warning numbers with commas.
You need to specify only the numeric part of the warning identifier. For example, if you want to suppress BC42024, the warning for unused local variables, specify /nowarn:42024.
For more information on the warning ID numbers, see Configurando Avisos (Warnings) no Visual Basic.
To set /nowarn in the Visual Studio integrated development environment |
|
Exemplo
The following code compiles T2.vb and does not display any warnings.
vbc /nowarn t2.vb
The following code compiles T2.vb and does not display the warnings for unused local variables (42024).
vbc /nowarn:42024 t2.vb
Consulte também
Referência
Exemplos de Linhas de Comando de Compilação (Visual Basic)
Conceitos
Configurando Avisos (Warnings) no Visual Basic