[Bug c/25509] can't voidify __attribute__((warn_unused_result))
mueller at kde dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 21 00:07:00 GMT 2005
------- Comment #2 from mueller at kde dot org 2005-12-21 00:07 -------
background: glibc 2.3 CVS attributes "fwrite" and "write" with it, and it
causes a lot (in the hundreds/thousands) of false positives for bigger software
projects, because while it is indeed the case that they ignore the return
value, it simply doesn't matter for the application (if, for example, it is
used as debug output). Yes, write(2) can fail, but there are cases where the
application can't possibly do anything about it, or even cares.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
More information about the Gcc-bugs
mailing list