[Bug c/66425] (void) cast doesn't suppress __attribute__((warn_unused_result))
uecker at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 16 21:21:28 GMT 2024
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.
More information about the Gcc-bugs
mailing list