public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] warning: `__attribute_used__' redefined
@ 2004-02-10  6:39 Jeff Chua
  2004-02-10  6:53 ` Andrew Morton
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Chua @ 2004-02-10  6:39 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: Linux Kernel



Linus, Andrew,

Here's a small fix for linux 2.6.3-rc2 to get rid of the annoying warnings
while non-kernel programs ...

/usr/include/linux/compiler-gcc2.h:15: warning: `__attribute_used__' redefined
/usr/include/sys/cdefs.h:170: warning: this is the location of the previous definition


Thanks,
Jeff


--- linux-2.6.2/include/linux/compiler-gcc2.h	Wed Feb  4 11:45:02 2004
+++ linux-2.6.3-rc2/include/linux/compiler-gcc2.h	Tue Feb 10 14:30:04 2004
@@ -12,6 +12,10 @@
 # define __builtin_expect(x, expected_value) (x)
 #endif

+#ifdef __attribute_used__
+#undef __attribute_used__
+#endif
+
 #define __attribute_used__	__attribute__((__unused__))

 /*

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

end of thread, other threads:[~2004-02-11 13:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-10  6:39 [PATCH] warning: `__attribute_used__' redefined Jeff Chua
2004-02-10  6:53 ` Andrew Morton
2004-02-10 13:59   ` Jeff Chua
2004-02-10 16:25     ` Andrew Morton
2004-02-10 16:31       ` Linus Torvalds
2004-02-10 17:10         ` Daniel Jacobowitz
2004-02-10 17:18           ` Linus Torvalds
2004-02-10 17:28           ` Valdis.Kletnieks
2004-02-10 17:37         ` Andrew Morton
2004-02-11 13:07         ` Jeff Chua

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