This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11959] New: fwrite must not be declared with the warn_unused_result attribute
- From: "jim at meyering dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Aug 2010 20:29:38 -0000
- Subject: [Bug libc/11959] New: fwrite must not be declared with the warn_unused_result attribute
- Reply-to: sourceware-bugzilla at sourceware dot org
The use of the warn_unused_result attribute in the declaration of fwrite is
undesirable, since it is perfectly legitimate to use fwrite without inspecting
its return value. In that case, one can still detect failure via ferror.
That libc declares fwrite with this attribute causes inordinate trouble for
those who try to avoid gcc warnings about this attribute.
Patch below.
--
Summary: fwrite must not be declared with the warn_unused_result
attribute
Product: glibc
Version: 2.13
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: jim at meyering dot net
CC: glibc-bugs at sources dot redhat dot com
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.