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 10:34:00 +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 #17 from Jeffrey Walton <noloader at gmail dot com> ---
(In reply to Jonathan Wakely from comment #15)
> (In reply to Jeffrey Walton from comment #13)
> > This issued caused Crypto++ to remove -Wall (and above) under GCC.
>
> That seems to be throwing the baby out with the bathwater. Why not simply use
>
> -Wall -Wno-unused-value -Wno-unused-variable
>
Here's a concrete example that just hit my inbox:
https://groups.google.com/d/msg/cryptopp-users/ixwCeessWZ8/xR2eOC3-j0MJ.
Its a user who compiling/linking against the library. We can't control what
options he puts on the command line. But he will discuss a noisy compile :)