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

Re: [PATCH 1/1] imap-send: include strbuf.h

From
Jeff King <peff@peff.net>
Date
May 18, 2023, 18:25 UTC
Message-ID
<20230518182504.GA557383@coredump.intra.peff.net>
In-Reply-To
<xmqq7ct5vdbk.fsf@gitster.g>
On Thu, May 18, 2023 at 09:01:19AM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Taylor Blau <me@ttaylorr.com> writes:
> 
> >> My inclination is punt and simply do not to claim that we have done
> >> a good due diligence to ensure with all permutations of ifdef we are
> >> including necessary headers.
> >
> > I think that's the best course of action, too. I see that it's already
> > on 'next', thanks.
> 
> Yeah, I am actuall hoping that somebody clever, with time, comes up
> with a systematic way to give us better coverage, but until then, I
> think it is better to honestly record where we are to future
> developers.

I faced a similar issue with the -Wunused-parameter patches. Just when I thought I had everything annotated, I'd find some obscure Makefile knob that compiled new code (or even in one case disabled some code that used a variable!).

I never came up with a good solution, but relying on CI helped, since it just builds more of the combinations. Obviously that didn't catch this case. We could try to hit more platforms / combinations of knobs in CI, but there are diminishing returns on the compute time.

But at least in this case, the old "if it is important, somebody will build it and report the problem" line of thinking worked out. So maybe that is enough.

I guess maybe that was more philosophical than helpful. ;)
-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 19 of 20 in “imap-send: include strbuf.h”
  1. 1/1 imap-send: include strbuf.hChristian Hesse, May 17, 2023
  2. Junio C HamanoMay 17, 2023
  3. Taylor BlauMay 17, 2023
  4. Junio C HamanoMay 17, 2023
  5. Taylor BlauMay 17, 2023
  6. Christian HesseMay 17, 2023
  7. Christian HesseMay 17, 2023
  8. Junio C HamanoMay 18, 2023
  9. Taylor BlauMay 17, 2023
  10. Junio C HamanoMay 17, 2023
  11. Junio C HamanoMay 17, 2023
  12. Taylor BlauMay 17, 2023
  13. rsbecker@nexbridge.comMay 17, 2023
  14. Junio C HamanoMay 17, 2023
  15. rsbecker@nexbridge.comMay 17, 2023
  16. Junio C HamanoMay 17, 2023
  17. Taylor BlauMay 17, 2023
  18. Junio C HamanoMay 18, 2023
  19. Jeff KingMay 18, 2023
  20. Junio C HamanoMay 18, 2023

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.