This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __attribute__ ((deprecated))



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]