https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89738
Bug ID: 89738 Summary: Warn for unused macro arguments Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: david.bolvansky at gmail dot com Target Milestone: --- I found a nasty bug in my code which was related to unused macro arguments. #define PARENT_NODE(x) ((id - 1) / 2) As you can see, the "id" macro argument was unused. The code worked fine, since id matched id in the code. Then I reused this macro in the other project and bum, the "id" variable unfortunely existed too, but now I used the macro as eg. PARENT_NODE(idx). Any changes for diagnostics for this case?