This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issue an internal warning on first deprecated function call


>>>>> "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


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