This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic
- From: "noloader at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Jul 2015 23:26:42 +0000
- Subject: [Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic
- Auto-submitted: auto-generated
- References: <bug-53431-4 at http dot gcc dot gnu dot org/bugzilla/>
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.