From: Nathan Chancellor Date: Wed, 10 Aug 2022 23:01:33 +0000 (-0700) Subject: scripts/Makefile.extrawarn: Do not disable clang's -Wformat-zero-length X-Git-Tag: v6.6.17~6744^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=370655bc183b1824ba623e621b58e8c2616c839c;p=platform%2Fkernel%2Flinux-rpi.git scripts/Makefile.extrawarn: Do not disable clang's -Wformat-zero-length There are no instances of this warning in the tree across several difference architectures and configurations. This was added by commit 26ea6bb1fef0 ("kbuild, LLVMLinux: Supress warnings unless W=1-3") back in 2014, where it might have been necessary, but there are no instances of it now so stop disabling it to increase warning coverage for clang. Signed-off-by: Nathan Chancellor Signed-off-by: Masahiro Yamada --- diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index f5f0d6f..0621c39 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -49,7 +49,6 @@ ifdef CONFIG_CC_IS_CLANG KBUILD_CFLAGS += -Wno-initializer-overrides KBUILD_CFLAGS += -Wno-format KBUILD_CFLAGS += -Wno-sign-compare -KBUILD_CFLAGS += -Wno-format-zero-length KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access)