linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS
@ 2018-10-17  0:08 Leonardo Brás
  2018-10-17  4:32 ` [Lkcamp] " Helen Koike
  2018-10-17  8:11 ` Borislav Petkov
  0 siblings, 2 replies; 16+ messages in thread
From: Leonardo Brás @ 2018-10-17  0:08 UTC (permalink / raw)
  To: lkcamp
  Cc: Matthew Wilcox, Andy Lutomirski, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, H. Peter Anvin, x86, Masahiro Yamada,
	Michal Marek, linux-kernel, linux-kbuild

Adds -Wshadow=local on KBUILD_HOSTCFLAGS to show shadow warnings
on tools built for HOST.

Signed-off-by: Leonardo Brás <leobras.c@gmail.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e8b599b4dcde..fb0a9ac195e7 100644
--- a/Makefile
+++ b/Makefile
@@ -360,7 +360,7 @@ HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null)
 
 HOSTCC       = gcc
 HOSTCXX      = g++
-KBUILD_HOSTCFLAGS   := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \
+KBUILD_HOSTCFLAGS   := -Wall -Wshadow=local -Wmissing-prototypes -Wstrict-prototypes -O2 \
 		-fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS) \
 		$(HOSTCFLAGS)
 KBUILD_HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS)
-- 
2.19.1


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

end of thread, other threads:[~2018-10-28 16:55 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17  0:08 [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS Leonardo Brás
2018-10-17  4:32 ` [Lkcamp] " Helen Koike
2018-10-17 23:18   ` Leonardo Bras
2018-10-17  8:11 ` Borislav Petkov
2018-10-17  8:21   ` Masahiro Yamada
2018-10-17  8:31     ` Borislav Petkov
2018-10-18  0:40       ` Leonardo Bras
2018-10-18  9:16         ` Borislav Petkov
2018-10-18 16:39           ` Masahiro Yamada
2018-10-18 16:50             ` Borislav Petkov
2018-10-19  2:41               ` Masahiro Yamada
2018-10-19  2:50                 ` Leonardo Bras
2018-10-19  8:08                 ` Borislav Petkov
2018-10-19 11:28             ` David Laight
2018-10-28 16:54               ` Masahiro Yamada
2018-10-18  0:36     ` Leonardo Bras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).