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
Patrick Steinhardt <ps@pks.im>
Date
May 11, 2026, 05:46 UTC
Message-ID
<agFtGM0H4S87ZxwR@pks.im>
In-Reply-To
<xmqqqzniset2.fsf@gitster.g>
On Mon, May 11, 2026 at 02:20:09PM +0900, Junio C Hamano wrote:
Show 7 quoted lines
> 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?

In any case, I'm also happy with the patch you posted. Thanks!
Patrick
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 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.