Re: Compile warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 14 Nov 2011 17:58:20 +0100, Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> wrote:

On Mon, Nov 14, 2011 at 15:55, Frans Klaver <fransklaver@xxxxxxxxx> wrote:
Every now and then I see an 'unused result' warning come by during building.
What is the general attitude towards these warnings? Remove them (by
properly checking)? Or leave them be as a kind of documentation -- we know
we're ignoring the info, but it's good to be reminded?

Under what OS / version and compiler / version and what's the warning?
Paste the full warning(s) you get verbatim.

This question was triggered by

warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result

appearing in diff.c, graph.c, grep.c and several others. I'm using gentoo linux, gcc 4.5.3.

So the specific question would be, do these fwrites need to be checked?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]