All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Makefile: Update clang warning disables from Linux
@ 2018-04-22 14:20 Tom Rini
  2018-04-27 23:27 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Rini @ 2018-04-22 14:20 UTC (permalink / raw)
  To: u-boot

Re-sync the logic about which clang warnings to disable from v4.17-rc1.
Note that we don't disable all of the same ones as for now we haven't
run into any cases of warnings from clang in code from upstream Linux.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 64351eb769e2..143644c98759 100644
--- a/Makefile
+++ b/Makefile
@@ -610,6 +610,13 @@ endif
 endif
 
 KBUILD_CFLAGS += $(call cc-option,-Wno-format-nonliteral)
+ifeq ($(cc-name),clang)
+KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
+KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
+KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
+KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
+KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
+endif
 
 # turn jbsr into jsr for m68k
 ifeq ($(ARCH),m68k)
-- 
2.7.4

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

* [U-Boot] Makefile: Update clang warning disables from Linux
  2018-04-22 14:20 [U-Boot] [PATCH] Makefile: Update clang warning disables from Linux Tom Rini
@ 2018-04-27 23:27 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2018-04-27 23:27 UTC (permalink / raw)
  To: u-boot

On Sun, Apr 22, 2018 at 10:20:50AM -0400, Tom Rini wrote:

> Re-sync the logic about which clang warnings to disable from v4.17-rc1.
> Note that we don't disable all of the same ones as for now we haven't
> run into any cases of warnings from clang in code from upstream Linux.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180427/1184e42e/attachment.sig>

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

end of thread, other threads:[~2018-04-27 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-22 14:20 [U-Boot] [PATCH] Makefile: Update clang warning disables from Linux Tom Rini
2018-04-27 23:27 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.