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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The standard maybe_unused attribute seems suitable. If an equality or
relational operator function has that attribute, don't warn if its result is
unused.

So weird operators with side effects can use the attribute.

Reply via email to