I know there is /WX
to treat all warnings as errors. And there is /we1234
to treat a specific warning (i.e. 1234) as an error.
What I miss is a flag to treat all warnings of level 3 as errors but not those of level 4.
In my legacy project we just managed to get rid of all W3 warnings and increased to W4. As this raised a couple thousands warnings, we will not be able to spot any new warnings of W3 when being introduced.
Thus we want to make all W3 warnings errors.
I could compile a list of all W3 warnings and add a /weXYZ
for each of them, but this seems way too tedious.