]> git.ipfire.org Git - thirdparty/curl.git/commit
msvc: drop exception, make `BIT()` a bitfield with Visual Studio
authorViktor Szakats <commit@vsz.me>
Thu, 1 Jan 2026 15:38:56 +0000 (16:38 +0100)
committerViktor Szakats <commit@vsz.me>
Sat, 17 Jan 2026 10:46:31 +0000 (11:46 +0100)
commit85c841cb45e5fe99ed3420adfa9c556fb397aefb
treefe4a5a9648bd6236e01e384cc313780b1ae46f0e
parent57ff2d6c918d0bb444e5a8a53405217aec116b1b
msvc: drop exception, make `BIT()` a bitfield with Visual Studio

Add casts to `bool`, or use `bit` type in local variables, where
neccessary to avoid MSVC compiler warnings C4242.

Note: There may remain places needing the above updates, where not
tested in CI, and missed in manual review.

Also:
- urldata: convert struct field `connect_only` to bitfield to match its
  counterpart in another struct.
- rename curl-specific `bit` type to `curl_bit`.

Closes #20142
32 files changed:
lib/asyn-thrdd.c
lib/cf-ip-happy.c
lib/cf-socket.c
lib/cfilters.c
lib/connect.c
lib/cookie.c
lib/cshutdn.c
lib/curl_sasl.c
lib/curl_setup_once.h
lib/cw-out.c
lib/ftp.c
lib/http.c
lib/http2.c
lib/http_chunks.c
lib/http_proxy.c
lib/imap.c
lib/mime.c
lib/multi.c
lib/pop3.c
lib/ratelimit.c
lib/sendf.c
lib/smtp.c
lib/socks.c
lib/url.c
lib/urldata.h
lib/vquic/curl_ngtcp2.c
lib/vtls/openssl.c
lib/vtls/rustls.c
lib/vtls/vtls.c
lib/ws.c
src/tool_cb_wrt.c
src/tool_operate.c