Public bug reported: According to GCC docs ( http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc /Function-Attributes.html ), "the warn_unused_result attribute causes a warning to be emitted if a caller of the function with this attribute does not use its return value. This is useful for functions where not checking the result is either a security problem or always a bug".
This attribute is set for fread which is wrong because it is valid to ignore the warning in many cases. Because of this bug, it is not possible to make usefull usage of _FORTIFY_SOURCE without introducing hacks to ignore the return value of fread. Please fix that. ** Affects: glibc (Ubuntu) Importance: Undecided Status: New -- fread declared with __wur (warn_unused_result) https://bugs.launchpad.net/bugs/367359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs