[Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic

noloader at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 23 23:26:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431

--- Comment #25 from Jeffrey Walton <noloader at gmail dot com> ---
Jonathan, Manuel, et al -

I'm putting this to bed on our side. We've re-enabled -Wall, and are moving
towards -Wextra.

I did come up with one more use case... The "unused parameter" warning.
Typically, I just comment it out:

   int Foo(int /*bar*/);

However, when generating documentation from sources, that's not a good
strategy. I now see the program omits the parameter altogether from the markup.

In the case of Crypto++, which has a lot of "interface programming" aspects, it
makes for a noisy compile as objects are composed and derived. There's often no
way to avoid something being unused along the inheritance chain.



More information about the Gcc-bugs mailing list