Re: custom compiler warnings

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

 



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


[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