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

Re: [PATCH 0/2] C23 compatibility

From
Patrick Steinhardt <ps@pks.im>
Date
Nov 18, 2024, 07:45 UTC
Message-ID
<Zzrwf2B36RgbhxEa@pks.im>
In-Reply-To
<20241117013149.576671-1-sandals@crustytoothpaste.net>
On Sun, Nov 17, 2024 at 01:31:47AM +0000, brian m. carlson wrote:
Show 12 quoted lines
> Most of our code works fine in C23, but there are some new additions to
> the standard that conflict with either our struct tags or functions.
> With this series, the code compiles and passes the testsuite with
> -std=c23 on GCC 14.2.0.
> 
> brian m. carlson (2):
>   index-pack: rename struct thread_local
>   reflog: rename unreachable
> 
>  builtin/index-pack.c | 10 +++++-----
>  reflog.c             |  4 ++--
>  2 files changed, 7 insertions(+), 7 deletions(-)

Both of the patches look obviously good to me. I was a bit surprised that this is required in the first place as I thought we were passing `-std=gnu99` to our compilers, but that is not the case with our current Makefile. So I must have been misremembering.

Thanks!
Patrick
Previous: Sam JamesNext: Jeff King
Message 6 of 8 in “Build failure with -std=gnu23 (GCC 15 default)”
  1. Sam JamesNov 16, 2024
  2. 0/2 C23 compatibilitybrian m. carlson, Nov 17, 2024
  3. 2/2 reflog: rename unreachablebrian m. carlson, Nov 17, 2024
  4. 1/2 index-pack: rename struct thread_localbrian m. carlson, Nov 17, 2024
  5. Sam JamesNov 17, 2024
  6. Patrick SteinhardtNov 18, 2024
  7. Jeff KingNov 18, 2024
  8. brian m. carlsonNov 18, 2024

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.