diff options
| author | Robert Love <rml@tech9.net> | 2002-12-30 22:32:18 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-30 22:32:18 -0800 |
| commit | 49b5e1f71b720f4c3290f586d9231a7cffcb6935 (patch) | |
| tree | 2731da99a956944ecc6ccf9500a416743aae06ba /include/linux | |
| parent | 646c3054a4b3c19e531e4b00f73046fa07e7c30d (diff) | |
[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.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/compiler.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f88889740949..99aab023173f 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -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 |
