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

Re: [PATCH] config.c: fix a compiler warning

From
Torsten Bögershausen <tboegi@web.de>
Date
Apr 16, 2014, 16:38 UTC
Message-ID
<534EB1FB.5040405@web.de>
In-Reply-To
<20140416152920.GA4691@sigill.intra.peff.net>
On 2014-04-16 17.29, Jeff King wrote:
Show 5 quoted lines
> On Wed, Apr 16, 2014 at 04:13:53PM +0200, Stepan Kasal wrote:
> 
>> Date: Thu, 10 Apr 2014 16:37:15 +0200
>>
>> This change fixes a gcc warning when building msysGit.
[]
Show 8 quoted lines
> +NORETURN
>  static void die_bad_number(const char *name, const char *value)
>  {
>  	const char *reason = errno == ERANGE ?
> 
> Does that also silence the warning?
> 
> -Peff
This works under gcc 4.2.1 Mac OS: the warning is away.
Previous: Jeff KingNext: Jeff King
Message 3 of 5 in “config.c: fix a compiler warning”
  1. config.c: fix a compiler warningStepan Kasal, Apr 16, 2014
  2. Jeff KingApr 16, 2014
  3. Torsten BögershausenApr 16, 2014
  4. config.c: mark die_bad_number as NORETURNJeff King, Apr 16, 2014
  5. Junio C HamanoApr 16, 2014

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.