http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60616
Bug ID: 60616 Summary: bad location from -Wunused-parameter Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Consider this source code: int whatever (int x, int y) { return x; } Compile it with g++: barimba. g++ -c -Wunused-parameter pr.cc pr.cc:1:5: warning: unused parameter ‘y’ [-Wunused-parameter] int whatever (int x, ^ Note that the error message refers to the wrong location. I think it should point to the 'y' on line 2.