

For example, /Wv:17 reports warnings introduced in or before any version of Visual Studio 2012, and suppresses warnings introduced by any compiler from Visual Studio 2013 (version 18) or later. It suppresses all warnings for versions greater than the specified number. The compiler reports all warnings that match versions that begin with the specified number. You can specify only the major number, the major and minor numbers, or the major, minor, and build numbers to the /Wv option. These versions of the compiler introduced new warnings: Product Don't suppress all new warnings permanently! We recommend you always compile at the highest regular warning level, /W4, and remove the /Wv option in your build as soon as practical. This option only suppresses warnings, not new error messages.

This option is useful for managing your build process when you introduce a new toolset version, and want to temporarily suppress new warnings. The compiler can suppress warnings that were introduced after a version you specify by using the /Wv compiler option.
