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

Re: [PATCH] cache.h: add missing NORETURN on git_die_config*()

From
Tanay Abhra <tanayabh@gmail.com>
Date
Aug 5, 2014, 14:09 UTC
Message-ID
<53E0E5AB.9050404@gmail.com>
In-Reply-To
<53E0E2E0.2070709@ramsay1.demon.co.uk>
On 8/5/2014 7:27 PM, Ramsay Jones wrote:
Show 25 quoted lines
> 
> Commit 3a2a9527 ("config: add `git_die_config()` to the config-set
> API", 01-08-2014) added git_die_config() and git_die_config_linenr()
> functions, but forgot to include the NORETURN attribute in their
> declarations. Sparse complains like so:
> 
>         SP config.c
>     config.c:1567:6: error: symbol 'git_die_config_linenr' redeclared \
>         with different type (originally declared at cache.h:1419) \
>         - different modifiers
>     config.c:1579:6: error: symbol 'git_die_config' redeclared with \
>         different type (originally declared at cache.h:1418) \
>         - different modifiers
> 
> Suppress the sparse errors by adding NORETURN to the function
> declarations in the cache.h header file.
> 
> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
> ---
> 
> Hi Tanay,
> 
> If you need to re-roll the patches in the 'ta/config-set-1' branch,
> could you please squash this into the relevant patch. Thanks!
>
Sorry, my bad. I will squash it in the relevant patch for my next re roll.

Thanks, Tanay Abhra.

Previous: Ramsay Jones
Message 2 of 2 in “cache.h: add missing NORETURN on git_die_config*()”
  1. cache.h: add missing NORETURN on git_die_config*()Ramsay Jones, Aug 5, 2014
  2. Tanay AbhraAug 5, 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.