https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976 Bug 40976 depends on bug 91443, which changed state.
Bug 91443 Summary: -Wargument-mismatch does not catch mismatch for global procedure https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91443 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED