On 08/31/2010 05:34 AM, Bruce Korb wrote:
1. GCC needs to relax the constraint that functions marked with warn-unused-result cause warnings when the result_is_ handled with a void cast.
This is done by design (I disagree, but this is not going to change). This is the only reason why the bug is 100% in glibc.
2. Given what GCC does, glibc is over the top in marking fwrite with warn-unused-result
True. And inconsistent as well, as pointed out already. Paolo