This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: custom compiler warnings
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Antonio Coralles <noche dot suapie at reflex dot at>, gcc-help at gcc dot gnu dot org
- Date: Thu, 24 Mar 2005 15:15:19 -0600
- Subject: Re: custom compiler warnings
- References: <42432C6E.8080007@reflex.at>
Hi Antonio,
You can use this GCC-ism:
#pragma GCC poison foo
When foo is used, the compiler will complain. It doesn't allow you to provide additional output text, though. I think that would be a nice enhancement...
#pragma GCC poison foo "use bar() instead"
And I'm not sure if this #pragma GCC poison facility plays nice with C++ namespaces.
HTH,
--Eljay