summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Kleen <ak@muc.de>2005-01-20 16:07:42 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:07:42 -0800
commit5efaaaac55cdcd76daecb98421a96cb2d7a25129 (patch)
treeab4bb9d3b6e74174734b62d9d23bc6d74af20e1b
parentcf627bbf312b2d64656082bff2544967fb3089f3 (diff)
[PATCH] Use -Wno-pointer-sign for gcc 4.0
Compiling an allyesconfig kernel straight with a gcc 4.0 snapshot gives nearly 10k new warnings like: warning: pointer targets in passing argument 5 of `cpuid' differ in signedness Since the sheer number of these warnings was too much even for the most determined kernel janitors (I actually asked ;-) and I don't think it's a very serious issue to have these mismatches I submitted an new option to gcc to disable it. It was incorporated in gcc mainline now. This patch makes the kernel compilation use it. There are still quite a lot of new warnings with 4.0 (mostly about uninitialized variables), but the compile log looks much nicer nnow. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 46ed11f4a448..9a3262ecccb9 100644
--- a/Makefile
+++ b/Makefile
@@ -533,6 +533,9 @@ include $(srctree)/arch/$(ARCH)/Makefile
# warn about C99 declaration after statement
CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
+# disable pointer signedness warnings in gcc 4.0
+CFLAGS += $(call cc-option,-Wno-pointer-sign,)
+
# Default kernel image to build when no specific target is given.
# KBUILD_IMAGE may be overruled on the commandline or
# set in the environment