__attribute__ ((deprecated))
Anthony Green
green@redhat.com
Mon Apr 23 21:04:00 GMT 2001
Stan wrote:
> 3. If yes, what are the implementation caveats to watch out for?
> (needs to work for all of C/ObjC/C++)
This looks cool, but how would this work with localized compilers?
> extern int worse_fn (char)
> __attribute__ ((deprecated "use new_good_fn instead"));
>
> to get
>
> warning: worse_fn is deprecated; use new_good_fn instead
We would need some scheme for localizing these messages, or just put
up with mixed language compiler warnings.
AG
More information about the Gcc
mailing list