git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Compile warnings

From
Frans Klaver <fransklaver@gmail.com>
Date
Nov 14, 2011, 21:55 UTC
Message-ID
<op.v4yhummo0aolir@keputer>
In-Reply-To
<CACBZZX6d_ykc9CbN7H-ACWNUxACb9+TH4ffJ-+9T=SEv6Ai0Ug@mail.gmail.com>

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

Show 11 quoted lines
> On Mon, Nov 14, 2011 at 15:55, Frans Klaver <fransklaver@gmail.com>  
> 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?
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 3 of 4 in “Compile warnings”
  1. Frans KlaverNov 14, 2011
  2. Ævar Arnfjörð BjarmasonNov 14, 2011
  3. Frans KlaverNov 14, 2011
  4. Junio C HamanoNov 14, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.