The above sequence of warning flags causes unused-parameters to be reported, while one expects it to not. The fact that -Wextra and -Wall together magically turn unused-parameter on is shadowing the effect of the explicit -Wno-unused-parameter. It took me quite a while to figure that out.
-- Summary: "-Wextra -Wno-unused-parameter -Wall" doesn't work as expected Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gnu at behdad dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28875