From f59a1d7a0e15b2e5080134fbef7572b747d779e9 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Mon, 19 Sep 2022 10:14:06 -0600 Subject: [PATCH] Update 02-Use_the_Tools_Available.md Add note about implicit-fallthrough with clang vs gcc --- 02-Use_the_Tools_Available.md | 1 + 1 file changed, 1 insertion(+) diff --git a/02-Use_the_Tools_Available.md b/02-Use_the_Tools_Available.md index 2b6f441..a159c71 100644 --- a/02-Use_the_Tools_Available.md +++ b/02-Use_the_Tools_Available.md @@ -125,6 +125,7 @@ You should use as many compilers as you can for your platform(s). Each compiler * `-Wdouble-promotion` (GCC >= 4.6, Clang >= 3.8) warn if `float` is implicit promoted to `double` * `-Wformat=2` warn on security issues around functions that format output (ie `printf`) * `-Wlifetime` (only special branch of Clang currently) shows object lifetime issues + * `-Wimplicit-fallthrough` Warns when case statements fall-through. (Included with `-Wextra` in GCC, not in clang) Consider using `-Weverything` and disabling the few warnings you need to on Clang