This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25509] can't disable __attribute__((warn_unused_result))
- From: "filbranden at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Jun 2015 00:52:54 +0000
- Subject: [Bug c/25509] can't disable __attribute__((warn_unused_result))
- Auto-submitted: auto-generated
- References: <bug-25509-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
Filipe Brandenburger <filbranden at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |filbranden at google dot com
--- Comment #31 from Filipe Brandenburger <filbranden at google dot com> ---
See bug 66425 for the cast to (void) to ignore warn_unused_result for a single
case:
It looks like clang is already doing the right thing here...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c2
gcc should catch up.
Cheers,
Filipe