/nowarn:number1[,number2[...]]
where:
The /nowarn option lets you suppress the compiler’s ability to generate one or more warnings. Separate multiple warning numbers with a comma.
You only need to specify the numeric part of the warning identifier. For example, if you want to suppress CS0050, you could specify /nowarn:50
.