mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 03:04:36 +03:00
/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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user