Re: RFC: deprecated functions calling deprecated functions

2006-09-29 Thread Mike Stump
On Sep 29, 2006, at 2:04 PM, Mark Mitchell wrote: Eric Christopher wrote: 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 bein

Re: RFC: deprecated functions calling deprecated functions

2006-09-29 Thread David Nicol
I think we should continue to warn. I can see the arguments on both sides, but I think warning makes sense. The person compiling the library should use -Wno-deprecated, and accept that they be calling some other deprecated function they don't intend to call. how about suppressing nested warnin

Re: RFC: deprecated functions calling deprecated functions

2006-09-29 Thread Mark Mitchell
Eric Christopher wrote: 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

RFC: deprecated functions calling deprecated functions

2006-09-26 Thread Eric Christopher
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 gott