This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: custom compiler warnings
- From: Mws <mws at twisted-brains dot org>
- To: Antonio Coralles <noche dot suapie at reflex dot at>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 24 Mar 2005 22:10:44 +0100
- Subject: Re: custom compiler warnings
- References: <42432C6E.8080007@reflex.at>
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