/Wx raises Command-Line Error D8021

The correct arg has a capital X `/WX`. `/Wx` is treated like `/W<number>` but fails the parsing and generates an invalid number (I suppose).
This commit is contained in:
Stefano Famà
2020-03-07 12:02:18 +01:00
committed by GitHub
parent 203c9d1787
commit 07eb64cfeb

View File

@@ -164,7 +164,7 @@ Not recommended
Start with very strict warning settings from the beginning. Trying to raise the warning level after the project is underway can be painful.
Consider using the *treat warnings as errors* setting. `/Wx` with MSVC, `-Werror` with GCC / Clang
Consider using the *treat warnings as errors* setting. `/WX` with MSVC, `-Werror` with GCC / Clang
## LLVM-based tools