public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 1/9] -Wshadow: Add -Wshadow to toplevel Makefile
@ 2006-07-10 11:12 Jesper Juhl
  2006-07-10 14:14 ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Jesper Juhl @ 2006-07-10 11:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: jesper.juhl

(please see the mail titled 
 "[RFC][PATCH 0/9] -Wshadow: Making the kernel build clean with -Wshadow"
 for an explanation of why I'm doing this)


Add -Wshadow to the top-level Makefile.


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.18-rc1/Makefile.orig	2006-07-10 10:31:59.000000000 +0200
+++ linux-2.6.18-rc1/Makefile	2006-07-10 10:32:33.000000000 +0200
@@ -188,7 +188,7 @@
 
 HOSTCC       = gcc
 HOSTCXX      = g++
-HOSTCFLAGS   = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCFLAGS   = -Wall -Wshadow -Wstrict-prototypes -O2 -fomit-frame-pointer
 HOSTCXXFLAGS = -O2
 
 # Decide whether to build built-in, modular, or both.
@@ -307,7 +307,7 @@
 
 CPPFLAGS        := -D__KERNEL__ $(LINUXINCLUDE)
 
-CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
+CFLAGS          := -Wall -Wshadow -Wundef -Wstrict-prototypes -Wno-trigraphs \
                    -fno-strict-aliasing -fno-common
 # Force gcc to behave correct even for buggy distributions
 CFLAGS          += $(call cc-option, -fno-stack-protector-all \



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

end of thread, other threads:[~2006-07-10 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-10 11:12 [RFC][PATCH 1/9] -Wshadow: Add -Wshadow to toplevel Makefile Jesper Juhl
2006-07-10 14:14 ` David Woodhouse
2006-07-10 14:17   ` Jesper Juhl

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