This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __attribute__ ((deprecated))
- To: shebs at apple dot com
- Subject: Re: __attribute__ ((deprecated))
- From: Anthony Green <green at redhat dot com>
- Date: 23 Apr 2001 21:04:33 -0700
- CC: gcc at gcc dot gnu dot org
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