This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11959] fwrite must not be declared with the warn_unused_result attribute
- From: "eblake at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Aug 2010 21:11:05 -0000
- Subject: [Bug libc/11959] fwrite must not be declared with the warn_unused_result attribute
- References: <20100830202938.11959.jim@meyering.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From eblake at redhat dot com 2010-08-30 21:11 -------
See also this gcc bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
where the suggested hammer is to completely disable ALL warn_unused_result
checking in order to silence spurious warnings for fwrite(). I'd rather remove
the __wur from fwrite than turn off what would otherwise be a useful gcc feature
for functions where warning really does make sense.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11959
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.