This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50477] -Wunused-parameter should not warn about virtual method declarations with bodies


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]