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

Re: [PATCH] reftable: make REFTABLE_UNUSED C99 compatible

From
Patrick Steinhardt <ps@pks.im>
Date
May 30, 2025, 08:47 UTC
Message-ID
<aDlwsM_18nYB2MOr@pks.im>
In-Reply-To
<20250530062533.GA1321283@coredump.intra.peff.net>
On Fri, May 30, 2025 at 02:25:33AM -0400, Jeff King wrote:
Show 8 quoted lines
> On Fri, May 30, 2025 at 07:35:49AM +0200, Patrick Steinhardt wrote:
> 
> > What I don't understand though: we have a `MAYBE_UNUSED` macro that has
> > the exact same definition in "git-compat-util.h". Why does the macro
> > cause issues in the reftable library, but not over there?
> 
> We turn __attribute__() into a noop for some platforms earlier in
> git-compat-util.h. So it doesn't need a separate #ifdef.

Ah, that's something I missed when introducing `REFTABLE_UNUSED`. With that added context the patch looks sensible to me. Thanks!

Patrick
Previous: Jeff KingNext: Junio C Hamano
Message 8 of 13 in “Build Failure: Git 2.50.0-rc0 on NonStop”
  1. rsbecker@nexbridge.comMay 28, 2025
  2. reftable: make REFTABLE_UNUSED C99 compatibleCarlo Marcelo Arenas Belón, May 29, 2025
  3. Junio C HamanoMay 29, 2025
  4. brian m. carlsonMay 29, 2025
  5. Junio C HamanoMay 30, 2025
  6. Patrick SteinhardtMay 30, 2025
  7. Jeff KingMay 30, 2025
  8. Patrick SteinhardtMay 30, 2025
  9. Junio C HamanoMay 30, 2025
  10. [Bug] Build Failure: Git 2.50.0-rc0 on NonStoprsbecker@nexbridge.com, May 30, 2025
  11. Kristoffer HaugsbakkMay 30, 2025
  12. Patrick SteinhardtMay 30, 2025
  13. rsbecker@nexbridge.comJun 1, 2025

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.