https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
--- Comment #80 from Segher Boessenkool <segher at gcc dot gnu.org> --- (In reply to Andrew Church from comment #79) > (In reply to Segher Boessenkool from comment #78) > > If someone (the user, the author, anyone) used warn_unused_result where it > > is > > not appropriate, just fix *that*. The attribute is specifically for cases > > where not looking at the result value is a big (often hard to find) bug, > > The issue here is that the library user _cannot_ (realistically) fix > improper usage of WUR by the library author. This is exactly the same problem as any other problematic bug in library code. Sane users vote with their feet in such cases, if a bug report (or whatever equivalent) does not easily get it satisfactorily fixed.