https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89180 Bug 89180 depends on bug 99972, which changed state.
Bug 99972 Summary: missing -Wunused-result on a call to a locally redeclared warn_unused_result function https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99972 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED