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

Re: [PATCH] git-compat-util.h: GCC deprecated only takes a message in GCC 4.5+

From
Jeff King <peff@peff.net>
Date
Oct 11, 2022, 00:22 UTC
Message-ID
<Y0S3XDToBqnMr4/m@coredump.intra.peff.net>
In-Reply-To
<221006.86edvkr6cc.gmgdl@evledraar.gmail.com>
On Thu, Oct 06, 2022 at 11:15:16PM +0200, Ævar Arnfjörð Bjarmason wrote:
Show 6 quoted lines
> > But if the definition gets much more complicated, then it's probably
> > worth pulling it out rather than repeating it.
> 
> Yeah, I've dealt with that pain before in other contexts. It would be
> great to have a git-compiler-compat.h with just the various
> __attribute__ stuff split off from git-compat-util.h.

I was going to just have unused.h, since I'd worry that piling too much stuff into it will eventually hit a place where some compat/ code is unhappy. But I'd also be OK to _start_ with the UNUSED definition, but call it git-compiler-compat or something, and then people can migrate things as they choose to test them.

> 	+TEST_BUILTINS_OBJS_NO_UNUSED += test-ctype.o

I'd rather not go that route. I already have an UNUSED-clean code base, and once that is all merged we shouldn't need any of that complexity. In the meantime, yes, people introduce new cases, but I am fixing those as they do (and have been for a few years now).

-Peff
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 8 of 9 in “git-compat-util.h: GCC deprecated only takes a message in GCC 4.5+”
  1. git-compat-util.h: GCC deprecated only takes a message in GCC 4.5+Aleajndro R Sedeño, Oct 3, 2022
  2. brian m. carlsonOct 3, 2022
  3. Alejandro R. SedeñoOct 3, 2022
  4. Jeff KingOct 5, 2022
  5. Ævar Arnfjörð BjarmasonOct 6, 2022
  6. Jeff KingOct 6, 2022
  7. Ævar Arnfjörð BjarmasonOct 6, 2022
  8. Jeff KingOct 11, 2022
  9. Ævar Arnfjörð BjarmasonOct 6, 2022

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.