deprecated function call

bridged with qdn.public.qnxrtp.devtools
Post Reply
Alain Bonnefoy

deprecated function call

Post by Alain Bonnefoy » Wed Nov 05, 2003 7:45 am

Hi,
Does anybody knows how to tell a developper uses a deprecated function?
I tried something with #warning but I get the warning everytime and not
only if the function call is used in a C source file.
Maybe I missed something.

any idea?

Alain.

John Garvey

Re: deprecated function call

Post by John Garvey » Wed Nov 05, 2003 8:36 am

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:
Does anybody knows how to tell a developper uses a deprecated function?
I tried something with #warning but I get the warning everytime and not
only if the function call is used in a C source file.
GCC 3.x has "attribute(__deprecated__)"; don't know of 2.95 corollary ...

Alain Bonnefoy

Re: deprecated function call

Post by Alain Bonnefoy » Thu Nov 06, 2003 7:59 am

HI John,
Except that the syntax is in fact __attribute__((deprecated)) the info
is good.
Unfortunately, 'deprecated' attribute came with 3.1 gcc release!

Do you use GCC 3 on QNX6 ? does it exist ?

Thanks,
Alain.

John Garvey a écrit:
Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:


Does anybody knows how to tell a developper uses a deprecated function?
I tried something with #warning but I get the warning everytime and not
only if the function call is used in a C source file.



GCC 3.x has "attribute(__deprecated__)"; don't know of 2.95 corollary ...

Post Reply

Return to “qdn.public.qnxrtp.devtools”