Commit 49b5e1f7 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] __deprecated requires gcc 3.1

James Bottomley confirmed the "deprecated" attribute requires gcc 3.1
and onward, not gcc 3.0.

This updates the check in compiler.h accordingly.
parent 646c3054
......@@ -17,10 +17,9 @@
* Allow us to mark functions as 'deprecated' and have gcc emit a nice
* warning for each use, in hopes of speeding the functions removal.
* Usage is:
* int deprecated foo(void)
* and then gcc will emit a warning for each usage of the function.
* int __deprecated foo(void)
*/
#if __GNUC__ >= 3
#if ( __GNUC__ == 3 && __GNUC_MINOR > 0 ) || __GNUC__ > 3
#define __deprecated __attribute__((deprecated))
#else
#define __deprecated
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment