Re: [PATCH] __deprecated requires gcc 3.1

James Bottomley (James.Bottomley@SteelEye.com)
Tue, 31 Dec 2002 17:13:38 -0600


This is a multipart MIME message.

--==_Exmh_-5856960360
Content-Type: text/plain; charset=us-ascii

Oops, mea culpa on that one. It's missing a trailing `__' on the end of
__GNUC_MINOR

James

--==_Exmh_-5856960360
Content-Type: text/plain ; name="tmp.diff"; charset=us-ascii
Content-Description: tmp.diff
Content-Disposition: attachment; filename="tmp.diff"

===== include/linux/compiler.h 1.8 vs edited =====
--- 1.8/include/linux/compiler.h Sun Dec 29 12:52:54 2002
+++ edited/include/linux/compiler.h Tue Dec 31 17:12:32 2002
@@ -20,7 +20,7 @@
* int deprecated foo(void)
* and then gcc will emit a warning for each usage of the function.
*/
-#if __GNUC__ >= 3
+#if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3
#define __deprecated __attribute__((deprecated))
#else
#define __deprecated

--==_Exmh_-5856960360--

-
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/