This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50477] -Wunused-parameter should not warn about virtual method declarations with bodies
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 May 2012 19:46:02 +0000
- Subject: [Bug c++/50477] -Wunused-parameter should not warn about virtual method declarations with bodies
- Auto-submitted: auto-generated
- References: <bug-50477-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50477
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-05-24 19:46:02 UTC ---
I sympathize with your argument, but I think that some users will want the
current behavior. One way you could work around this that wouldn't involve
uglifying every affected function would be to add
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
....
#pragma GCC diagnostic pop
around the header.