public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.12] Add -Wno-pointer-sign to HOSTCFLAGS
@ 2005-06-19  1:50 Keith Owens
  2005-06-20  2:02 ` Jeff Garzik
  0 siblings, 1 reply; 7+ messages in thread
From: Keith Owens @ 2005-06-19  1:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: sam

Compiling 2.6.12 with gcc 4.0.0 (FC4) gets lots of warnings for the
programs in the scripts directory.  Add -Wno-pointer-sign to HOSTCFLAGS
to suppress them.

Signed-off-by: Keith Owens <kaos@ocs.com.au>

Index: 2.6.12/Makefile
===================================================================
--- 2.6.12.orig/Makefile	2005-06-18 15:21:18.000000000 +1000
+++ 2.6.12/Makefile	2005-06-19 11:43:15.876218980 +1000
@@ -204,6 +204,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH"
 HOSTCC  	= gcc
 HOSTCXX  	= g++
 HOSTCFLAGS	= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+# disable pointer signedness warnings in gcc 4.0
+HOSTCFLAGS += $(call cc-option,-Wno-pointer-sign,)
 HOSTCXXFLAGS	= -O2
 
 # 	Decide whether to build built-in, modular, or both.


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [patch 2.6.12] Add -Wno-pointer-sign to HOSTCFLAGS
@ 2005-06-19  9:23 Mikael Pettersson
  2005-06-19  9:58 ` Russell King
  2005-06-19 10:32 ` Keith Owens
  0 siblings, 2 replies; 7+ messages in thread
From: Mikael Pettersson @ 2005-06-19  9:23 UTC (permalink / raw)
  To: kaos, linux-kernel; +Cc: sam

On Sun, 19 Jun 2005 11:50:03 +1000, Keith Owens wrote:
>Compiling 2.6.12 with gcc 4.0.0 (FC4) gets lots of warnings for the
>programs in the scripts directory.  Add -Wno-pointer-sign to HOSTCFLAGS
>to suppress them.
>
>Signed-off-by: Keith Owens <kaos@ocs.com.au>
>
>Index: 2.6.12/Makefile
>===================================================================
>--- 2.6.12.orig/Makefile	2005-06-18 15:21:18.000000000 +1000
>+++ 2.6.12/Makefile	2005-06-19 11:43:15.876218980 +1000
>@@ -204,6 +204,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH"
> HOSTCC  	= gcc
> HOSTCXX  	= g++
> HOSTCFLAGS	= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
>+# disable pointer signedness warnings in gcc 4.0
>+HOSTCFLAGS += $(call cc-option,-Wno-pointer-sign,)
> HOSTCXXFLAGS	= -O2

Please don't. Bogus code should be fixed, not hidden.

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

end of thread, other threads:[~2005-07-03 19:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-19  1:50 [patch 2.6.12] Add -Wno-pointer-sign to HOSTCFLAGS Keith Owens
2005-06-20  2:02 ` Jeff Garzik
2005-07-03 19:26   ` Sam Ravnborg
  -- strict thread matches above, loose matches on Subject: below --
2005-06-19  9:23 Mikael Pettersson
2005-06-19  9:58 ` Russell King
2005-06-19 10:32 ` Keith Owens
2005-07-03 19:22   ` Sam Ravnborg

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