Messages in this thread Patch in this message | | | Date | Tue, 10 Feb 2004 14:39:29 +0800 (SGT) | From | Jeff Chua <> | Subject | [PATCH] warning: `__attribute_used__' redefined |
| |
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__))
/* - 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/
| |