diff options
| author | Robert Love <rml@tech9.net> | 2002-12-28 04:09:48 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-28 04:09:48 -0800 |
| commit | 8ad65876172145c1d26caa837bf5ebe4fe4db7fb (patch) | |
| tree | 5ddc7f3f8daa42bea8530822df10df62cbaffd19 /kernel | |
| parent | fb7d196b9a65a800e5d841c2543267383e6bf3cd (diff) | |
[PATCH] deprecated function attribute
This patch adds support for usage of the attribute as "deprecated" and
is backward-compatible. Usage is:
int deprecated foo(void)
etc..
If we mark a function as deprecated, then each use of the function emits
a warning like:
foo.c:12: warning: `baz' is deprecated (declared at bar.c:60)
Which is very informative, giving both the location of each usage and
where the little bastard is declared.
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
