From c58f76d2989044fb881cbe8416e16d6bd6ea5d76 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 3 Oct 2018 11:55:59 -0600 Subject: [PATCH] Add note on `-Wlifetime` --- 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 450405b..6ce1c0c 100644 --- a/02-Use_the_Tools_Available.md +++ b/02-Use_the_Tools_Available.md @@ -116,6 +116,7 @@ You should use as many compilers as you can for your platform(s). Each compiler * `-Wuseless-cast` warn if you perform a cast to the same type * `-Wdouble-promotion` warn if `float` is implicit promoted to `double` * `-Wformat=2` warn on security issues around functions that format output (ie `printf`) + * `-Wlifetime` (clang only currently) shows object lifetime issues Consider using `-Weverything` and disabling the few warnings you need to on Clang