From: Arnd Bergmann Date: Thu, 10 Nov 2016 16:44:54 +0000 (+0100) Subject: Kbuild: enable -Wmaybe-uninitialized warnings by default X-Git-Tag: v4.14-rc1~2117^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4324cb23f4569edcf76e637cdb3c1dfe8e8a85e4;p=platform%2Fkernel%2Flinux-rpi.git Kbuild: enable -Wmaybe-uninitialized warnings by default Previously the warnings were added back at the W=1 level and above, this now turns them on again by default, assuming that we have addressed all warnings and again have a clean build for v4.10. I found a number of new warnings in linux-next already and submitted bugfixes for those. Hopefully they are caught by the 0day builder in the future as soon as this patch is merged. Signed-off-by: Arnd Bergmann Signed-off-by: Linus Torvalds --- diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 7fc2c5a..7c321a6 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -60,8 +60,6 @@ endif KBUILD_CFLAGS += $(warning) else -KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized) - ifeq ($(cc-name),clang) KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides) KBUILD_CFLAGS += $(call cc-disable-warning, unused-value)