10000 /Wx raises Command-Line Error D8021 · svenzhang2016/cppbestpractices@07eb64c · GitHub
[go: up one dir, main page]

Skip to content

Commit 07eb64c

Browse files
authored
/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).
1 parent 203c9d1 commit 07eb64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02-Use_the_Tools_Available.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Not recommended
164164

165165
Start with very strict warning settings from the beginning. Trying to raise the warning level after the project is underway can be painful.
166166

167-
Consider using the *treat warnings as errors* setting. `/Wx` with MSVC, `-Werror` with GCC / Clang
167+
Consider using the *treat warnings as errors* setting. `/WX` with MSVC, `-Werror` with GCC / Clang
168168

169169
## LLVM-based tools
170170

0 commit comments

Comments
 (0)
0