Change #255442
| Category | curl |
| Changed by | Viktor Szakats <commit@vsz.me> |
| Changed at | Sat 17 Jan 2026 11:46:31 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | 85c841cb45e5fe99ed3420adfa9c556fb397aefb |
Comments
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
Changed files
- 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