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

Re: [PATCH] reftable: make REFTABLE_UNUSED C99 compatible

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
May 29, 2025, 23:13 UTC
Message-ID
<aDjp_IkgmITrl59-@tapette.crustytoothpaste.net>
In-Reply-To
<xmqqtt53l7cl.fsf@gitster.g>
On 2025-05-29 at 16:17:14, Junio C Hamano wrote:
Show 15 quoted lines
> Corresponding definition we use in the main part of the project
> defined in compat/posix.h looks like this:
> 
>         #if GIT_GNUC_PREREQ(4, 5)
>         #define UNUSED __attribute__((unused)) \
>                 __attribute__((deprecated ("parameter declared as UNUSED")))
>         #elif defined(__GNUC__)
>         #define UNUSED __attribute__((unused)) \
>                 __attribute__((deprecated))
>         #else
>         #define UNUSED
>         #endif
> 
> GCC 4.5 or older may no longer be relevant, in which case yours may
> be good enough.

RHEL 7, which is now well past EOL, had GCC 4.8 and Debian 7, released in 2013 and also well past EOL, had GCC 4.7. I think we can safely assume nobody within our support policy is using GCC before 4.5.

-- 
brian m. carlson (they/them)
Toronto, Ontario, CA
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 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.