git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] silencing warnings with curl 8.14
@ 2025-06-04 20:55 Jeff King
  2025-06-04 20:55 ` [PATCH 1/3] curl: fix integer constant typechecks with curl_easy_setopt() Jeff King
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Jeff King @ 2025-06-04 20:55 UTC (permalink / raw)
  To: git

The new version of curl (which hit Debian unstable a few days ago)
causes a bunch of compiler warnings because we are passing regular ints
to curl_easy_setopt() instead of longs. Passing longs has always been
what you're supposed to do, but the new version is better about
generating warnings with gcc (I think the type-check has been there for
a long time, but I gather it was broken and recently fixed).

I split this into three patches since the solutions vary slightly (well,
the last two are the same, but my pontificating on the solution varies).

  [1/3]: curl: fix integer constant typechecks with curl_easy_setopt()
  [2/3]: curl: fix integer variable typechecks with curl_easy_setopt()
  [3/3]: curl: fix symbolic constant typechecks with curl_easy_setopt()

 http-push.c   |  2 +-
 http.c        | 28 ++++++++++++++--------------
 imap-send.c   |  6 +++---
 remote-curl.c |  6 +++---
 4 files changed, 21 insertions(+), 21 deletions(-)

-Peff

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-06-05 23:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-04 20:55 [PATCH 0/3] silencing warnings with curl 8.14 Jeff King
2025-06-04 20:55 ` [PATCH 1/3] curl: fix integer constant typechecks with curl_easy_setopt() Jeff King
2025-06-05 10:57   ` Johannes Schindelin
2025-06-05 16:04     ` Junio C Hamano
2025-06-05 22:49       ` Jeff King
2025-06-05 22:51         ` Jeff King
2025-06-05 23:13           ` Junio C Hamano
2025-06-05 22:47     ` Jeff King
2025-06-04 20:55 ` [PATCH 2/3] curl: fix integer variable " Jeff King
2025-06-04 20:56 ` [PATCH 3/3] curl: fix symbolic constant " Jeff King
2025-06-04 21:25   ` Junio C Hamano
2025-06-05  6:13   ` Daniel Stenberg
2025-06-05  7:25     ` Jeff King
2025-06-04 21:23 ` [PATCH 0/3] silencing warnings with curl 8.14 Collin Funk
2025-06-04 22:03 ` Ramsay Jones
2025-06-05  5:21 ` Patrick Steinhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).