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, 03:23 UTC
Message-ID
<xmqqzf26sk80.fsf@gitster.g>
In-Reply-To
<20260505-b4-pks-ci-tolerate-glibc-generic-v1-1-5786386fe512@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 8 quoted lines
> Instead, work around the issue by not using -std=gnu99 with Clang when
> using the Makefile and by disabling warnings about C11 extensions when
> using Meson. This isn't ideal, but we at least retain the ability to
> detect the (mis-)use of features from newer standards with GCC.
>
> An alternative to this might be to simply bump the required C standard
> to C11, which is 15 years old by now and should have support on most
> platforms out there. But some more esoteric platforms may not have it.

Wouldn't the approach you took on the meson side to pass "-Wno-c11-extensions" be yet another alternative? I think that is what the other proposal (which was only for Makefile world and not for meson world) did, even though it may not have been a great implemenation to help only those who use config.mak.dev

   <pull.2291.git.git.1778120192298.gitgitgadget@gmail.com>

We would need a patch to apply at lesat on v2.54.0 but possibly older tracks if we plan to keep them also buildable.

Thanks.
Previous: Patrick SteinhardtNext: Junio C Hamano
Message 2 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.