This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/25509] can't voidify __attribute__((warn_unused_result))



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]