https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425

--- Comment #66 from Andrew Church <achurch+gcc at achurch dot org> ---
(In reply to Andrew Church from comment #65)
> As one of the advocates for this behavior, it stems (at least in my case)
> from pre-C23 code in which [[attribute]] syntax was not available.  If
> [[nodiscard]] suppresses the warning, I'd accept that as a solution.

Premature reply (apologies) - I somehow gave myself the impression that
[[nodiscard]] could be put at the place of use.  Since it's something the
library writer has to do, I think this is still not enough from the library
user's point of view.

Reply via email to