Messages in this thread Patch in this message |  | | | From | Jesper Juhl <> | | Subject | [RFC][PATCH 1/9] -Wshadow: Add -Wshadow to toplevel Makefile | | Date | Mon, 10 Jul 2006 13:12:27 +0200 |
| |
(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 \
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |