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

Re: What's cooking in git.git (Dec 2012, #05; Tue, 18)

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 20, 2012, 18:13 UTC
Message-ID
<7vwqwc617y.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20121220145941.GC27211@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 13 quoted lines
> On Tue, Dec 18, 2012 at 12:31:43PM -0800, Junio C Hamano wrote:
>
>> * jk/error-const-return (2012-12-15) 2 commits
>>  - silence some -Wuninitialized false positives
>>  - make error()'s constant return value more visible
>> 
>>  Help compilers' flow analysis by making it more explicit that
>>  error() always returns -1, to reduce false "variable used
>>  uninitialized" warnings.
>> 
>>  This is still an RFC.
>
> What's your opinion on this?
Ugly but not too much so, and it would be useful.

The only thing that makes it ugly is that it promises error() will return -1 and nothing else forever, but at this point in the evolution of the codebase, I think we are pretty much committed to it anyway, so I do not think it is a problem.

Previous: Jeff KingNext: Jeff King
Message 4 of 6 in “What's cooking in git.git (Dec 2012, #05; Tue, 18)”
  1. Junio C HamanoDec 18, 2012
  2. Junio C HamanoDec 19, 2012
  3. Jeff KingDec 20, 2012
  4. Junio C HamanoDec 20, 2012
  5. Jeff KingDec 20, 2012
  6. Junio C HamanoDec 20, 2012

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.