-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Closed
Commits on Apr 30, 2024
-
``` 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
Configuration menu - View commit details
-
Copy full SHA for 0ad8b49 - Browse repository at this point
Copy the full SHA 0ad8b49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c270a3 - Browse repository at this point
Copy the full SHA 3c270a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9231e3 - Browse repository at this point
Copy the full SHA d9231e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2511495 - Browse repository at this point
Copy the full SHA 2511495View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7530f5 - Browse repository at this point
Copy the full SHA f7530f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c17732 - Browse repository at this point
Copy the full SHA 8c17732View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b94206b - Browse repository at this point
Copy the full SHA b94206bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9606299 - Browse repository at this point
Copy the full SHA 9606299View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3391e21 - Browse repository at this point
Copy the full SHA 3391e21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29321ae - Browse repository at this point
Copy the full SHA 29321aeView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8d03ece - Browse repository at this point
Copy the full SHA 8d03eceView commit details -
Configuration menu - View commit details
-
Copy full SHA for e63dbe5 - Browse repository at this point
Copy the full SHA e63dbe5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8153c63 - Browse repository at this point
Copy the full SHA 8153c63View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae40d07 - Browse repository at this point
Copy the full SHA ae40d07View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8317f7 - Browse repository at this point
Copy the full SHA a8317f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82db7d7 - Browse repository at this point
Copy the full SHA 82db7d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26af888 - Browse repository at this point
Copy the full SHA 26af888View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0390180 - Browse repository at this point
Copy the full SHA 0390180View commit details -
Configuration menu - View commit details
-
Copy full SHA for de4f8f9 - Browse repository at this point
Copy the full SHA de4f8f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa41c91 - Browse repository at this point
Copy the full SHA fa41c91View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0ce612 - Browse repository at this point
Copy the full SHA d0ce612View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2c89b1 - Browse repository at this point
Copy the full SHA d2c89b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22e9405 - Browse repository at this point
Copy the full SHA 22e9405View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4245995 - Browse repository at this point
Copy the full SHA 4245995View commit details -
``` 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, | ^~~~~~~~~~~~~~ ```
Configuration menu - View commit details
-
Copy full SHA for 01ac885 - Browse repository at this point
Copy the full SHA 01ac885View commit details -
Configuration menu - View commit details
-
Copy full SHA for beff682 - Browse repository at this point
Copy the full SHA beff682View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9a8486 - Browse repository at this point
Copy the full SHA e9a8486View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb3c232 - Browse repository at this point
Copy the full SHA bb3c232View commit details -
Configuration menu - View commit details
-
Copy full SHA for f98e79a - Browse repository at this point
Copy the full SHA f98e79aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 837b441 - Browse repository at this point
Copy the full SHA 837b441View commit details -
``` 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
Configuration menu - View commit details
-
Copy full SHA for 2700e8e - Browse repository at this point
Copy the full SHA 2700e8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14e2f87 - Browse repository at this point
Copy the full SHA 14e2f87View commit details -
Configuration menu - View commit details
-
Copy full SHA for af2801e - Browse repository at this point
Copy the full SHA af2801eView commit details -
Configuration menu - View commit details
-
Copy full SHA for efedcd4 - Browse repository at this point
Copy the full SHA efedcd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5904160 - Browse repository at this point
Copy the full SHA 5904160View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c4a27 - Browse repository at this point
Copy the full SHA 81c4a27View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc23139 - Browse repository at this point
Copy the full SHA dc23139View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1b531a - Browse repository at this point
Copy the full SHA e1b531aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fb92aa - Browse repository at this point
Copy the full SHA 8fb92aaView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 796dd44 - Browse repository at this point
Copy the full SHA 796dd44View commit details -
``` /__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
Configuration menu - View commit details
-
Copy full SHA for e2b566a - Browse repository at this point
Copy the full SHA e2b566aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e7cb8c - Browse repository at this point
Copy the full SHA 3e7cb8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44cd7dc - Browse repository at this point
Copy the full SHA 44cd7dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c58246 - Browse repository at this point
Copy the full SHA 0c58246View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c557c7 - Browse repository at this point
Copy the full SHA 3c557c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f25aa4c - Browse repository at this point
Copy the full SHA f25aa4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7002be - Browse repository at this point
Copy the full SHA d7002beView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac91fea - Browse repository at this point
Copy the full SHA ac91feaView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc4018e - Browse repository at this point
Copy the full SHA cc4018eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dc7ca8 - Browse repository at this point
Copy the full SHA 5dc7ca8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ac27b2 - Browse repository at this point
Copy the full SHA 7ac27b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1223fe7 - Browse repository at this point
Copy the full SHA 1223fe7View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf0c465 - Browse repository at this point
Copy the full SHA cf0c465View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 34d8b0d - Browse repository at this point
Copy the full SHA 34d8b0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7286832 - Browse repository at this point
Copy the full SHA 7286832View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54807a8 - Browse repository at this point
Copy the full SHA 54807a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c385829 - Browse repository at this point
Copy the full SHA c385829View commit details -
Configuration menu - View commit details
-
Copy full SHA for 023d545 - Browse repository at this point
Copy the full SHA 023d545View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30dd5d1 - Browse repository at this point
Copy the full SHA 30dd5d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 218b496 - Browse repository at this point
Copy the full SHA 218b496View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1855987 - Browse repository at this point
Copy the full SHA 1855987View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89cbb56 - Browse repository at this point
Copy the full SHA 89cbb56View commit details -
``` 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
Configuration menu - View commit details
-
Copy full SHA for 37276b0 - Browse repository at this point
Copy the full SHA 37276b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f73afa - Browse repository at this point
Copy the full SHA 9f73afaView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6d0ff9 - Browse repository at this point
Copy the full SHA e6d0ff9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e619b52 - Browse repository at this point
Copy the full SHA e619b52View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for bba4d94 - Browse repository at this point
Copy the full SHA bba4d94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 263c630 - Browse repository at this point
Copy the full SHA 263c630View commit details -
Configuration menu - View commit details
-
Copy full SHA for deaf629 - Browse repository at this point
Copy the full SHA deaf629View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d7dbca - Browse repository at this point
Copy the full SHA 1d7dbcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for a105fc9 - Browse repository at this point
Copy the full SHA a105fc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdeb359 - Browse repository at this point
Copy the full SHA cdeb359View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0687bbe - Browse repository at this point
Copy the full SHA 0687bbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 755d7dd - Browse repository at this point
Copy the full SHA 755d7ddView commit details -
``` ../../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
Configuration menu - View commit details
-
Copy full SHA for 28dde17 - Browse repository at this point
Copy the full SHA 28dde17View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbb7e11 - Browse repository at this point
Copy the full SHA fbb7e11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c39ee1 - Browse repository at this point
Copy the full SHA 3c39ee1View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.