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

Re: [PATCH] build: tolerate use of _Generic from glibc 2.43 with Clang

From
Junio C Hamano <gitster@pobox.com>
Date
May 11, 2026, 06:10 UTC
Message-ID
<xmqqecjischc.fsf@gitster.g>
In-Reply-To
<agFtGM0H4S87ZxwR@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 13 quoted lines
> On Mon, May 11, 2026 at 02:20:09PM +0900, Junio C Hamano wrote:
>> Junio C Hamano <gitster@pobox.com> writes:
>> 
>> > Wouldn't the approach you took on the meson side to pass
>> > "-Wno-c11-extensions" be yet another alternative?
>> 
>> In other words, I would imagine something like this patch that uses
>> the same strategy on both sides may be easier to reason about.
>
> I was going back and forth on this myself. I simply wasn't sure whether
> it even buys us anything anymore if we have both "-std=gnu99" _and_
> "-Wno-c11-extensions". But maybe this combination at least also detects
> the use of newer (C23) extensions?

We shouldn't be the only project hit by the unconditional use of _Generic in glibc 2.43 headers, should we? I was hoping that this would be fixed upstream, and that anything we do locally is merely a workaround of a tentative nature.

> In any case, I'm also happy with the patch you posted. Thanks!
Thanks for a quick response.

You may have guessed correctly that I want to fast-track this topic down to 'next' and 'master' soonish to salvage CI jobs running for them.

Previous: Patrick Steinhardt
Message 5 of 5 in “build: tolerate use of _Generic from glibc 2.43 with Clang”
  1. build: tolerate use of _Generic from glibc 2.43 with ClangPatrick Steinhardt, May 5, 2026
  2. Junio C HamanoMay 11, 2026
  3. Junio C HamanoMay 11, 2026
  4. Patrick SteinhardtMay 11, 2026
  5. Junio C HamanoMay 11, 2026

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.