This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Issue an internal warning on first deprecated function call
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Cagney <ac131313 at ges dot redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: 21 Aug 2002 11:08:53 -0600
- Subject: Re: Issue an internal warning on first deprecated function call
- References: <3D5C248D.4030003@ges.redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Andrew" == Andrew Cagney <ac131313@ges.redhat.com> writes:
Andrew> The idea is to issue an internal-warning on the first call to a
Andrew> deprecated [multi-arch] function.
Andrew> Thoughts? Variations on the idea?
What about marking functions as deprecated at compile time using
__attribute__? Then the burden falls on the maintainers not to call
deprecated functions. (I'm not certain that
__attribute__((deprecated)) works if you are calling through a
function pointer.)
Tom