public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild, LLVMLinux: Don't suppress format warnings
@ 2019-02-01 21:08 jflat
  2019-02-05  8:26 ` Masahiro Yamada
  0 siblings, 1 reply; 11+ messages in thread
From: jflat @ 2019-02-01 21:08 UTC (permalink / raw)
  To: linux-kbuild; +Cc: linux-kernel, yamada.masahiro, michal.lkml, Jon Flatley

From: Jon Flatley <jflat@chromium.org>

gcc produces format warnings that clang suppresses. To keep behavior
consistent between gcc and clang, don't suppress format warnings in
clang.

Signed-off-by: Jon Flatley <jflat@chromium.org>
---
 scripts/Makefile.extrawarn | 1 -
 1 file changed, 1 deletion(-)

diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index 768306add591..94daf4e1fc73 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -68,7 +68,6 @@ else
 ifdef CONFIG_CC_IS_CLANG
 KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides)
 KBUILD_CFLAGS += $(call cc-disable-warning, unused-value)
-KBUILD_CFLAGS += $(call cc-disable-warning, format)
 KBUILD_CFLAGS += $(call cc-disable-warning, sign-compare)
 KBUILD_CFLAGS += $(call cc-disable-warning, format-zero-length)
 KBUILD_CFLAGS += $(call cc-disable-warning, uninitialized)
-- 
2.20.1.611.gfbb209baf1-goog

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-02-07  0:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-01 21:08 [PATCH] kbuild, LLVMLinux: Don't suppress format warnings jflat
2019-02-05  8:26 ` Masahiro Yamada
2019-02-06 16:45   ` Nathan Chancellor
2019-02-06 17:32     ` Jon Flatley
2019-02-06 17:36       ` Nick Desaulniers
2019-02-06 17:43         ` Nathan Chancellor
2019-02-07  0:24           ` Masahiro Yamada
2019-02-07  0:27             ` Masahiro Yamada
2019-02-07  0:30               ` Nick Desaulniers
2019-02-07  0:37                 ` Nathan Chancellor
2019-02-07  0:40                   ` Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox