RFC: deprecated functions calling deprecated functions

Eric Christopher echristo@apple.com
Wed Sep 27 07:05:00 GMT 2006


So, a testcase like this:

extern void foo() __attribute__((deprecated));
extern void bar() __attribute__((deprecated));

void foo() {}

void bar()
{
     foo();
}

Should we warn on the invocation of foo() since it's also being called 
from within a deprecated function? We are today, but I've gotten a 
request for that to not warn. This seems reasonable, for example, if you 
deprecate an entire API or something, but still need to compile the library.

Thoughts?

-eric



More information about the Gcc mailing list