[patch] ld: optimize vfinfo output slightly
nick clifton
nickc@redhat.com
Mon Apr 2 09:56:00 GMT 2012
Hi Mike,
>>> if (fwrite (str, 1, len, fp) != len)
>>> {
>>> /* Ignore. */
>>> }
>>
>> Yes. Although it would be simpler to just remove the whole if (...)
>> statment block and just call fwrite without testing its return value.
> the reason i didn't do that is it causes warnings since fwrite() is marked as
> "warn on unused result"
OK, how about:
(void) fwrite (str, 1, len, fp);
Cheers
Nick
More information about the Binutils
mailing list