Re: custom compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Antonio Coralles wrote:

Is it possible with gcc-3.3.5 to emit custom compiler warnings when specific functions are called, like: "warning: foo() is deprecated; use bar() instead" ?
thanks,
antonio

not really but you can sign a deprecated function to do a warning

a) void foo();
b) void foo() __attribute__ ((deprecated)) ;

b) is issuing a warning if your programm is calling/referencing it

regards
mws






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux