https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
uecker at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |uecker at gcc dot gnu.org --- Comment #64 from uecker at gcc dot gnu.org --- I think it is reasonable to want to suppress this using (void). But [[nodiscard]] does this and I haven't heard any convincing reason why it could not be used.