[Bug c/66425] (void) cast doesn't suppress __attribute__((warn_unused_result))
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 16:35:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
--- Comment #25 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #24)
> I agree that (void) should suppress the warning. Jakub, do you remember why
> you made a different choice?
I think the request came from Uli that it isn't that easy to suppress it, at
least initially the warning was meant for cases where it would be a major
security problem to ignore the return value.
More information about the Gcc-bugs
mailing list