Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: silence -Wsign-conversion, tidy-ups, fixes #13481

Closed
wants to merge 77 commits into from

Commits on Apr 30, 2024

  1. lib altsvc

    ```
    altsvc.c: In function ‘altsvc_add’:
    altsvc.c:192:18: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
      192 |       as->prio = prio;
          |                  ^~~~
    altsvc.c: In function ‘getalnum’:
    altsvc.c:412:9: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
      412 |   len = p - protop;
          |         ^
    altsvc.c: In function ‘altsvc_debugtime’:
    altsvc.c:465:25: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
      465 |     unsigned long val = strtol(timestr, NULL, 10);
          |                         ^~~~~~
    altsvc.c: In function ‘Curl_altsvc_parse’:
    altsvc.c:549:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
      549 |             len = p - hostp;
          |                   ^
    altsvc.c:627:24: warning: conversion to ‘time_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
      627 |               maxage = num;
          |                        ^~~
    altsvc.c: In function ‘Curl_altsvc_lookup’:
    altsvc.c:699:18: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
      699 |        (versions & as->dst.alpnid)) {
          |                  ^
    ```
    Ref: https://github.com/curl/curl/actions/runs/8819398779/job/24210519501#step:30:25
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    0ad8b49 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3c270a3 View commit details
    Browse the repository at this point in the history
  3. lib asyn-ares

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    d9231e3 View commit details
    Browse the repository at this point in the history
  4. lib asyn-thread win32

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    2511495 View commit details
    Browse the repository at this point in the history
  5. lib bufq

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    f7530f5 View commit details
    Browse the repository at this point in the history
  6. lib cf-h2-proxy

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8c17732 View commit details
    Browse the repository at this point in the history
  7. lib cf-socket

    win32:
    ```
     177 |     vals.keepalivetime = optval;
          |                        ~ ^~~~~~
    /home/runner/work/curl/curl/curl/lib/cf-socket.c:180:30: error: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Werror,-Wsign-conversion]
      180 |     vals.keepaliveinterval = optval;
          |                            ~ ^~~~~~
    ```
    Ref: https://github.com/curl/curl/actions/runs/8862225447/job/24334941063?pr=13489#step:3:6125
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    b94206b View commit details
    Browse the repository at this point in the history
  8. lib c-hyper

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    9606299 View commit details
    Browse the repository at this point in the history
  9. lib cfilters

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3391e21 View commit details
    Browse the repository at this point in the history
  10. lib content_encoding

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    29321ae View commit details
    Browse the repository at this point in the history
  11. lib cookie

    Linux 32-bit gcc:
    ```
    cookie.c: In function ‘cookie_hash_domain’:
    cookie.c:266:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
      266 |     h ^= (size_t)Curl_raw_toupper(*domain++);
          |       ^~
    ```
    Ref: https://github.com/curl/curl/actions/runs/8859933866/job/24330206389?pr=13489#step:6:90
    
    temp:
    ```
    cookie.c:266:11: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
      266 |     h = h ^ (size_t)Curl_raw_toupper(*domain++);
          |           ^
    ```
    Ref: https://github.com/curl/curl/actions/runs/8861448062/job/24333315928?pr=13489#step:6:79
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8d03ece View commit details
    Browse the repository at this point in the history
  12. lib curl_addrinfo mingw

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    e63dbe5 View commit details
    Browse the repository at this point in the history
  13. lib curl_fnmatch

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8153c63 View commit details
    Browse the repository at this point in the history
  14. lib curl_gethostname

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    ae40d07 View commit details
    Browse the repository at this point in the history
  15. lib curl_gssapi

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    a8317f7 View commit details
    Browse the repository at this point in the history
  16. lib curl_multibyte

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    82db7d7 View commit details
    Browse the repository at this point in the history
  17. lib curl_ntlm_core

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    26af888 View commit details
    Browse the repository at this point in the history
  18. lib curl_path

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    0390180 View commit details
    Browse the repository at this point in the history
  19. lib curl_sspi

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    de4f8f9 View commit details
    Browse the repository at this point in the history
  20. lib curl_trc

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    fa41c91 View commit details
    Browse the repository at this point in the history
  21. lib dynhds

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    d0ce612 View commit details
    Browse the repository at this point in the history
  22. lib doh

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    d2c89b1 View commit details
    Browse the repository at this point in the history
  23. lib nonblock

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    22e9405 View commit details
    Browse the repository at this point in the history
  24. lib inet_ntop

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    4245995 View commit details
    Browse the repository at this point in the history
  25. lib inet_ntop.h win32

    ```
    inet_ntop.h:36:34: error: conversion to 'size_t' {aka 'long long unsigned int'} from 'int' may change the sign of the result [-Werror=sign-conversion]
    libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -Werror-implicit-function-declaration -g -O0 -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wold-style-definition -Wstrict-aliasing=3 -Wattributes -Wdiv-by-zero -Wformat-security -Wmissing-field-initializers -Wmissing-noreturn -Wunreachable-code -Wunused-parameter -Wpragmas -Wredundant-decls -Wcast-align -Waddress -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion -Wtrampolines -Wsign-conversion -Wvla -ftree-vrp -Wno-pedantic-ms-format -Wdouble-promotion -Wformat=2 -Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2 -Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond -Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough -Warith-conversion -Wenum-conversion -Wno-system-headers -Werror -pedantic-errors -MT libcurl_la-hostasyn.lo -MD -MP -MF .deps/libcurl_la-hostasyn.Tpo -c hostasyn.c  -DDLL_EXPORT -DPIC -o .libs/libcurl_la-hostasyn.o
       36 |         inet_ntop(af, addr, buf, (curl_socklen_t)size)
    mv -f .deps/libcurl_la-hmac.Tpo .deps/libcurl_la-hmac.Plo
    hostip.c:144:11: note: in expansion of macro 'Curl_inet_ntop'
      144 |     (void)Curl_inet_ntop(ai->ai_family, (const void *)ipaddr4,
          |           ^~~~~~~~~~~~~~
    /bin/sh ../libtool  --tag=CC   --mode=compile x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H   -I../include -I../lib -I../lib -DBUILDING_LIBCURL  -DCURL_HIDDEN_SYMBOLS   -fvisibility=hidden -Werror-implicit-function-declaration -g -O0 -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wold-style-definition -Wstrict-aliasing=3 -Wattributes -Wdiv-by-zero -Wformat-security -Wmissing-field-initializers -Wmissing-noreturn -Wunreachable-code -Wunused-parameter -Wpragmas -Wredundant-decls -Wcast-align -Waddress -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion -Wtrampolines -Wsign-conversion -Wvla -ftree-vrp -Wno-pedantic-ms-format -Wdouble-promotion -Wformat=2 -Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2 -Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond -Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough -Warith-conversion -Wenum-conversion -Wno-system-headers -Werror -pedantic-errors -MT libcurl_la-hostip.lo -MD -MP -MF .deps/libcurl_la-hostip.Tpo -c -o libcurl_la-hostip.lo `test -f 'hostip.c' || echo './'`hostip.c
    inet_ntop.h:36:34: error: conversion to 'size_t' {aka 'long long unsigned int'} from 'int' may change the sign of the result [-Werror=sign-conversion]
    libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -Werror-implicit-function-declaration -g -O0 -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wold-style-definition -Wstrict-aliasing=3 -Wattributes -Wdiv-by-zero -Wformat-security -Wmissing-field-initializers -Wmissing-noreturn -Wunreachable-code -Wunused-parameter -Wpragmas -Wredundant-decls -Wcast-align -Waddress -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion -Wtrampolines -Wsign-conversion -Wvla -ftree-vrp -Wno-pedantic-ms-format -Wdouble-promotion -Wformat=2 -Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2 -Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond -Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough -Warith-conversion -Wenum-conversion -Wno-system-headers -Werror -pedantic-errors -MT libcurl_la-hostip.lo -MD -MP -MF .deps/libcurl_la-hostip.Tpo -c hostip.c  -DDLL_EXPORT -DPIC -o .libs/libcurl_la-hostip.o
       36 |         inet_ntop(af, addr, buf, (curl_socklen_t)size)
    libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -Werror-implicit-function-declaration -g -O0 -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wold-style-definition -Wstrict-aliasing=3 -Wattributes -Wdiv-by-zero -Wformat-security -Wmissing-field-initializers -Wmissing-noreturn -Wunreachable-code -Wunused-parameter -Wpragmas -Wredundant-decls -Wcast-align -Waddress -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion -Wtrampolines -Wsign-conversion -Wvla -ftree-vrp -Wno-pedantic-ms-format -Wdouble-promotion -Wformat=2 -Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2 -Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond -Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough -Warith-conversion -Wenum-conversion -Wno-system-headers -Werror -pedantic-errors -MT libcurl_la-hostasyn.lo -MD -MP -MF .deps/libcurl_la-hostasyn.Tpo -c hostasyn.c -o libcurl_la-hostasyn.o >/dev/null 2>&1
    hostip.c:152:11: note: in expansion of macro 'Curl_inet_ntop'
    mv -f .deps/libcurl_la-hostasyn.Tpo .deps/libcurl_la-hostasyn.Plo
      152 |     (void)Curl_inet_ntop(ai->ai_family, (const void *)ipaddr6,
    make[2]: Leaving directory '/c/__w/1/s/lib'
          |           ^~~~~~~~~~~~~~
    ```
    
    ```
    In file included from /home/runner/work/curl/curl/curl/_x64-win-ucrt-bld/lib/CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c:178:
    /home/runner/work/curl/curl/curl/lib/hostip.c:144:11: error: implicit conversion changes signedness: 'curl_socklen_t' (aka 'int') to 'size_t' (aka 'unsigned long long') [-Werror,-Wsign-conversion]
      144 |     (void)Curl_inet_ntop(ai->ai_family, (const void *)ipaddr4,
          |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      145 |                          buf, (size_t)bufsize);
          |                          ~~~~~~~~~~~~~~~~~~~~~
    /home/runner/work/curl/curl/curl/lib/inet_ntop.h:36:34: note: expanded from macro 'Curl_inet_ntop'
       36 |         inet_ntop(af, addr, buf, (curl_socklen_t)size)
          |         ~~~~~~~~~                ^~~~~~~~~~~~~~~~~~~~
    In file included from /home/runner/work/curl/curl/curl/_x64-win-ucrt-bld/lib/CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c:178:
    /home/runner/work/curl/curl/curl/lib/hostip.c:152:11: error: implicit conversion changes signedness: 'curl_socklen_t' (aka 'int') to 'size_t' (aka 'unsigned long long') [-Werror,-Wsign-conversion]
      152 |     (void)Curl_inet_ntop(ai->ai_family, (const void *)ipaddr6,
          |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      153 |                          buf, (size_t)bufsize);
          |                          ~~~~~~~~~~~~~~~~~~~~~
    /home/runner/work/curl/curl/curl/lib/inet_ntop.h:36:34: note: expanded from macro 'Curl_inet_ntop'
       36 |         inet_ntop(af, addr, buf, (curl_socklen_t)size)
          |         ~~~~~~~~~                ^~~~~~~~~~~~~~~~~~~~
    ```
    
    ```
    hostip.c: In function 'Curl_printable_address':
    inet_ntop.h:36:34: error: conversion to 'size_t' {aka 'long long unsigned int'} from 'int' may change the sign of the result [-Werror=sign-conversion]
       36 |         inet_ntop(af, addr, buf, (curl_socklen_t)size)
    hostip.c:144:11: note: in expansion of macro 'Curl_inet_ntop'
      144 |     (void)Curl_inet_ntop(ai->ai_family, (const void *)ipaddr4,
          |           ^~~~~~~~~~~~~~
    inet_ntop.h:36:34: error: conversion to 'size_t' {aka 'long long unsigned int'} from 'int' may change the sign of the result [-Werror=sign-conversion]
       36 |         inet_ntop(af, addr, buf, (curl_socklen_t)size)
    hostip.c:152:11: note: in expansion of macro 'Curl_inet_ntop'
      152 |     (void)Curl_inet_ntop(ai->ai_family, (const void *)ipaddr6,
          |           ^~~~~~~~~~~~~~
    ```
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    01ac885 View commit details
    Browse the repository at this point in the history
  26. lib inet_pton

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    beff682 View commit details
    Browse the repository at this point in the history
  27. lib easy

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    e9a8486 View commit details
    Browse the repository at this point in the history
  28. lib escape

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    bb3c232 View commit details
    Browse the repository at this point in the history
  29. lib file

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    f98e79a View commit details
    Browse the repository at this point in the history
  30. lib smtp

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    837b441 View commit details
    Browse the repository at this point in the history
  31. lib setopt

    ```
    setopt.c: In function ‘Curl_vsetopt’:
    setopt.c:156:38: error: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Werror=sign-conversion]
      156 | #define C_SSLVERSION_MAX_VALUE(x) (x & 0xffff0000)
          |                                      ^
    setopt.c:477:21: note: in expansion of macro ‘C_SSLVERSION_MAX_VALUE’
      477 |       version_max = C_SSLVERSION_MAX_VALUE(arg);
          |                     ^~~~~~~~~~~~~~~~~~~~~~
    setopt.c:156:35: error: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Werror=sign-conversion]
      156 | #define C_SSLVERSION_MAX_VALUE(x) (x & 0xffff0000)
          |                                   ^
    setopt.c:477:21: note: in expansion of macro ‘C_SSLVERSION_MAX_VALUE’
      477 |       version_max = C_SSLVERSION_MAX_VALUE(arg);
          |                     ^~~~~~~~~~~~~~~~~~~~~~
    ```
    Ref: https://github.com/curl/curl/actions/runs/8862048067/job/24334557085?pr=13489
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    2700e8e View commit details
    Browse the repository at this point in the history
  32. lib select

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    14e2f87 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    af2801e View commit details
    Browse the repository at this point in the history
  34. lib request

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    efedcd4 View commit details
    Browse the repository at this point in the history
  35. lib pingpong

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    5904160 View commit details
    Browse the repository at this point in the history
  36. lib formdata

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    81c4a27 View commit details
    Browse the repository at this point in the history
  37. lib ftp

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    dc23139 View commit details
    Browse the repository at this point in the history
  38. lib getinfo

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    e1b531a View commit details
    Browse the repository at this point in the history
  39. lib gopher

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8fb92aa View commit details
    Browse the repository at this point in the history
  40. lib hash

    also fixup (32-bit i686-linux-gnu-gcc-11)
    ```
    hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
      282 |     h ^= (size_t)*key_str++;
          |       ^~
    ```
    Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235
    
    Also address FIXMEs
    
    Rebased on fixes cc907e8 curl#13502
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    796dd44 View commit details
    Browse the repository at this point in the history
  41. lib headers

    ```
    /__w/curl/curl/lib/headers.c:57:15: error: conversion to 'unsigned int' from 'int' may change the sign of the result [-Werror=sign-conversion]
       h->origin = hs->type | (1<<27);
                   ^~
    ```
    Ref: https://github.com/curl/curl/actions/runs/8859933860/job/24330205818?pr=13489#step:5:440
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    e2b566a View commit details
    Browse the repository at this point in the history
  42. lib hostip

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3e7cb8c View commit details
    Browse the repository at this point in the history
  43. lib http

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    44cd7dc View commit details
    Browse the repository at this point in the history
  44. lib http1

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    0c58246 View commit details
    Browse the repository at this point in the history
  45. lib http2

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3c557c7 View commit details
    Browse the repository at this point in the history
  46. lib http_aws_sigv4

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    f25aa4c View commit details
    Browse the repository at this point in the history
  47. lib http_chunks

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    d7002be View commit details
    Browse the repository at this point in the history
  48. lib http_digest

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    ac91fea View commit details
    Browse the repository at this point in the history
  49. lib imap

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    cc4018e View commit details
    Browse the repository at this point in the history
  50. lib timeval

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    5dc7ca8 View commit details
    Browse the repository at this point in the history
  51. lib transfer

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    7ac27b2 View commit details
    Browse the repository at this point in the history
  52. lib url

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    1223fe7 View commit details
    Browse the repository at this point in the history
  53. lib urlapi

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    cf0c465 View commit details
    Browse the repository at this point in the history
  54. lib krb5

    temp:
    ```
    /__w/curl/curl/lib/krb5.c:528:22: error: conversion to 'uint32_t {aka unsigned int}' from 'int' may change the sign of the result [-Werror=sign-conversion]
         len = (int)ntohl((unsigned long)len);
                          ^
    /__w/curl/curl/lib/krb5.c: In function 'do_sec_send':
    /__w/curl/curl/lib/krb5.c:651:30: error: conversion to 'uint32_t {aka unsigned int}' from 'int' may change the sign of the result [-Werror=sign-conversion]
         htonl_bytes = (int)htonl((unsigned long)bytes);
                                  ^
    ```
    Ref: https://github.com/curl/curl/actions/runs/8862697118/job/24335936723?pr=13489#step:7:132
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    34d8b0d View commit details
    Browse the repository at this point in the history
  55. lib openldap

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    7286832 View commit details
    Browse the repository at this point in the history
  56. lib ldap

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    54807a8 View commit details
    Browse the repository at this point in the history
  57. lib pop3

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    c385829 View commit details
    Browse the repository at this point in the history
  58. lib rand

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    023d545 View commit details
    Browse the repository at this point in the history
  59. lib rtsp

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    30dd5d1 View commit details
    Browse the repository at this point in the history
  60. lib noproxy

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    218b496 View commit details
    Browse the repository at this point in the history
  61. lib sendf

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    1855987 View commit details
    Browse the repository at this point in the history
  62. lib smb

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    89cbb56 View commit details
    Browse the repository at this point in the history
  63. lib memdebug.h

    ```
    sws.c:1308:21: warning: implicit conversion changes signedness: 'enum (unnamed enum at sws.c:71:8)' to 'int' [-Wsign-conversion]
      serverfd = socket(socket_domain, SOCK_STREAM, 0);
                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../lib/memdebug.h:140:18: note: expanded from macro 'socket'
     curl_dbg_socket(domain, type, protocol, __LINE__, __FILE__)
     ~~~~~~~~~~~~~~~ ^~~~~~
    clang -DHAVE_CONFIG_H   -I../../include -I../../lib -I../../lib  -isystem /home/runner/bearssl/include  -Qunused-arguments -g -O0 -pedantic -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wfloat-equal -Wsign-compare -Wno-multichar -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wcast-align -Wno-system-headers -Wshorten-64-to-32 -Wunused -Waddress -Wattributes -Wbad-function-cast -Wconversion -Wdiv-by-zero -Wformat-security -Wempty-body -Wmissing-field-initializers -Wmissing-noreturn -Wold-style-definition -Wredundant-decls -Wtype-limits -Wunreachable-code -Wunused-parameter -Wignored-qualifiers -Wvla -Wsign-conversion -Wshift-sign-overflow -Wlanguage-extension-token -Wformat=2 -Wenum-conversion -Wsometimes-uninitialized -Wmissing-variable-declarations -Wheader-guard -Wunused-const-variable -Wpragmas -Wunreachable-code-break -Wdouble-promotion -Wcomma -Wassign-enum -Wextra-semi-stmt -Wimplicit-fallthrough -Wno-pointer-bool-conversion -MT ../../lib/tftpd-nonblock.o -MD -MP -MF ../../lib/.deps/tftpd-nonblock.Tpo -c -o ../../lib/tftpd-nonblock.o `test -f '../../lib/nonblock.c' || echo './'`../../lib/nonblock.c
    sws.c:2136:17: warning: implicit conversion changes signedness: 'enum (unnamed enum at sws.c:71:8)' to 'int' [-Wsign-conversion]
      sock = socket(socket_domain, SOCK_STREAM, 0);
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../lib/memdebug.h:140:18: note: expanded from macro 'socket'
     curl_dbg_socket(domain, type, protocol, __LINE__, __FILE__)
     ~~~~~~~~~~~~~~~ ^~~~~~
    2 warnings generated.
    ```
    Ref: https://github.com/curl/curl/actions/runs/8866821106/job/24344717997#step:34:174
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    37276b0 View commit details
    Browse the repository at this point in the history
  64. lib mime

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    9f73afa View commit details
    Browse the repository at this point in the history
  65. lib mqtt

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    e6d0ff9 View commit details
    Browse the repository at this point in the history
  66. lib multi

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    e619b52 View commit details
    Browse the repository at this point in the history
  67. lib multi suppress sign-conversion for FD_SET

    Seen on Alpine MUSL.
    
    ```
    multi.c:1201:9: error: conversion to 'long unsigned int' from 'curl_socket_t' {aka 'int'} may change the sign of the result [-Werror=sign-conversion]
     1201 |         FD_SET(ps.sockets[i], read_fd_set);
          |         ^~~~~~
    multi.c:1201:9: error: conversion to 'long unsigned int' from 'curl_socket_t' {aka 'int'} may change the sign of the result [-Werror=sign-conversion]
    multi.c:1203:9: error: conversion to 'long unsigned int' from 'curl_socket_t' {aka 'int'} may change the sign of the result [-Werror=sign-conversion]
     1203 |         FD_SET(ps.sockets[i], write_fd_set);
          |         ^~~~~~
    multi.c:1203:9: error: conversion to 'long unsigned int' from 'curl_socket_t' {aka 'int'} may change the sign of the result [-Werror=sign-conversion]
    ```
    Ref: https://github.com/curl/curl/actions/runs/8867959370/job/24347027402?pr=13489#step:31:373
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    bba4d94 View commit details
    Browse the repository at this point in the history
  68. lib socketpair

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    263c630 View commit details
    Browse the repository at this point in the history
  69. lib socks

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    deaf629 View commit details
    Browse the repository at this point in the history
  70. lib socks_gssapi

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    1d7dbca View commit details
    Browse the repository at this point in the history
  71. lib socks_sspi

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    a105fc9 View commit details
    Browse the repository at this point in the history
  72. lib strerror

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    cdeb359 View commit details
    Browse the repository at this point in the history
  73. lib telnet

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    0687bbe View commit details
    Browse the repository at this point in the history
  74. lib tftp

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    755d7dd View commit details
    Browse the repository at this point in the history
  75. lib tftp win32

    ```
    ../../lib/tftp.c: In function 'tftp_send_first':
    ../../lib/tftp.c:531:46: error: conversion to 'socklen_t' {aka 'int'} from 'unsigned int' may change the sign of the result [-Werror=sign-conversion]
      531 |                       data->conn->remote_addr->addrlen);
          |                       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
    ../../lib/tftp.c: In function 'tftp_connect':
    ../../lib/tftp.c:1036:36: error: conversion to 'socklen_t' {aka 'int'} from 'unsigned int' may change the sign of the result [-Werror=sign-conversion]
     1036 |                   conn->remote_addr->addrlen);
          |                   ~~~~~~~~~~~~~~~~~^~~~~~~~~
    
    ```
    Ref: https://ci.appveyor.com/project/curlorg/curl/builds/49706723/job/pxrgsssfmunjk2o9#L1212
    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    28dde17 View commit details
    Browse the repository at this point in the history
  76. lib ws

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    fbb7e11 View commit details
    Browse the repository at this point in the history
  77. lib version

    vszakats committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3c39ee1 View commit details
    Browse the repository at this point in the history