[Bug c/25509] can't disable __attribute__((warn_unused_result))
filbranden at google dot com
gcc-bugzilla@gcc.gnu.org
Thu Jun 11 13:37:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
--- Comment #35 from Filipe Brandenburger <filbranden at google dot com> ---
(In reply to Manuel López-Ibáñez from comments)
Don't worry, I got what you mean...
Though I don't think coming up with code to fix it is the issue here, in
comment #10 a patch was provided (which admittedly I haven't tested personally)
to turn a void cast into a temporary assignment (which I believe would have
been optimized out later in the pipeline) so I wonder why that hasn't really
gone forward...
Cheers,
Filipe
More information about the Gcc-bugs
mailing list