8000 Update 02-Use_the_Tools_Available.md · codex31373/cppbestpractices@f59a1d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit f59a1d7

Browse files
authored
Update 02-Use_the_Tools_Available.md
Add note about implicit-fallthrough with clang vs gcc
1 parent 8bb8d61 commit f59a1d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

02-Use_the_Tools_Available.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ You should use as many compilers as you can for your platform(s). Each compiler
125125
* `-Wdouble-promotion` (GCC >= 4.6, Clang >= 3.8) warn if `float` is implicit promoted to `double`
126126
* `-Wformat=2` warn on security issues around functions that format output (ie `printf`)
127127
* `-Wlifetime` (only special branch of Clang currently) shows object lifetime issues
128+
* `-Wimplicit-fallthrough` Warns when case statements fall-through. (Included with `-Wextra` in GCC, not in clang)
128129

129130
Consider using `-Weverything` and disabling the few warnings you need to on Clang
130131

0 commit comments

Comments
 (0)
0