Re: [PATCH 3/4] ubsan: Force -Wno-maybe-uninitialized only for GCC

2020-10-06 Thread Kees Cook
On Sun, Oct 04, 2020 at 12:16:14AM -0700, Nathan Chancellor wrote: > On Fri, Oct 02, 2020 at 03:15:26PM -0700, Kees Cook wrote: > > Clang handles 'maybe-uninitialized' better in the face of using UBSAN, > > so do not make this universally disabled for UBSAN builds. > > > > Signed-off-by: Kees

Re: [PATCH 3/4] ubsan: Force -Wno-maybe-uninitialized only for GCC

2020-10-04 Thread Nathan Chancellor
On Fri, Oct 02, 2020 at 03:15:26PM -0700, Kees Cook wrote: > Clang handles 'maybe-uninitialized' better in the face of using UBSAN, > so do not make this universally disabled for UBSAN builds. > > Signed-off-by: Kees Cook Well this patch is not strictly necessary because Clang does not support

[PATCH 3/4] ubsan: Force -Wno-maybe-uninitialized only for GCC

2020-10-02 Thread Kees Cook
Clang handles 'maybe-uninitialized' better in the face of using UBSAN, so do not make this universally disabled for UBSAN builds. Signed-off-by: Kees Cook --- lib/Kconfig.ubsan | 6 ++ scripts/Makefile.ubsan | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git