http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61106
--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Matthias Klose from comment #5) > this works and fixes the issue. running the full testsuite now. It would be nice to add this testcase ("-Wall -Wextra -Wno-unused" should not give -Wunused-parameter warning). Perhaps if you grep for "unused parameter" in the testsuite output, you can find a testcase testing something similar already and add it there. (It would be great if it was possible to say: /* { dg-options "-Wall -Wno-unused -Wextra" } */ /* { dg-options "-Wall -Wextra -Wno-unused" } */ and the testsuite would compile one time for each value of dg-options. Is this possible?)