← Commit list

6f93d5f604

Jay Satiro
Jay Satiro
2023-05-21
FAILED Duration: 475s

Subject

lib: fix conversion warnings with gcc on macOS

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

$ git checkout -f 6f93d5f604839f5aaf091d1b2ccd5d45b8637cdc
Previous HEAD position was 7a48ebc08f workflows/macos: add a job using gcc + debug + secure transport
HEAD is now at 6f93d5f604 lib: fix conversion warnings with gcc on macOS

$ git clean -fdx
Removing Makefile.in
Removing aclocal.m4
Removing autom4te.cache/
Removing compile
Removing confdefs.h
Removing config.guess
Removing config.log
Removing config.sub
Removing configure
Removing conftest.c
Removing depcomp
Removing docs/Makefile.in
Removing docs/cmdline-opts/Makefile.in
Removing docs/examples/Makefile.in
Removing docs/libcurl/Makefile.in
Removing docs/libcurl/opts/Makefile.in
Removing include/Makefile.in
Removing include/curl/Makefile.in
Removing install-sh
Removing lib/Makefile.in
Removing lib/curl_config.h.in
Removing ltmain.sh
Removing m4/libtool.m4
Removing m4/ltoptions.m4
Removing m4/ltsugar.m4
Removing m4/ltversion.m4
Removing m4/lt~obsolete.m4
Removing missing
Removing packages/Makefile.in
Removing packages/vms/Makefile.in
Removing run-compiler
Removing scripts/Makefile.in
Removing src/Makefile.in
Removing test-driver
Removing tests/Makefile.in
Removing tests/certs/Makefile.in
Removing tests/certs/scripts/Makefile.in
Removing tests/data/Makefile.in
Removing tests/http/Makefile.in
Removing tests/http/clients/Makefile.in
Removing tests/libtest/Makefile.in
Removing tests/server/Makefile.in
Removing tests/unit/Makefile.in

$ autoreconf -fi
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: Remember to add 'LT_INIT' to configure.ac.
configure.ac:123: installing './compile'
configure.ac:439: installing './config.guess'
configure.ac:439: installing './config.sub'
configure.ac:123: installing './install-sh'
configure.ac:129: installing './missing'
docs/examples/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'

$ bash -c find . -name config.guess -exec cp /usr/share/misc/config.guess {} \;

$ bash -c find . -name config.sub -exec cp /usr/share/misc/config.sub {} \;

$ chmod +x configure

$ ./configure --disable-shared --without-ssl --disable-docs

[TIMEOUT]

Commit Diff GitHub →

docs/examples/multi-legacy.c+1 -1
@@ -102,7 +102,7 @@ int main(void)
if(timeout.tv_sec > 1)
timeout.tv_sec = 1;
else
- timeout.tv_usec = (curl_timeo % 1000) * 1000;
+ timeout.tv_usec = (int)(curl_timeo % 1000) * 1000;
}
/* get file descriptors from the transfers */
docs/examples/sendrecv.c+1 -1
@@ -38,7 +38,7 @@ static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms)
int res;
tv.tv_sec = timeout_ms / 1000;
- tv.tv_usec = (timeout_ms % 1000) * 1000;
+ tv.tv_usec = (int)(timeout_ms % 1000) * 1000;
FD_ZERO(&infd);
FD_ZERO(&outfd);
src/tool_cb_rea.c+1 -1
@@ -65,7 +65,7 @@ size_t tool_read_cb(char *buffer, size_t sz, size_t nmemb, void *userdata)
/* wait this long at the most */
timeout.tv_sec = wait/1000;
- timeout.tv_usec = (wait%1000)*1000;
+ timeout.tv_usec = (int)((wait%1000)*1000);
FD_ZERO(&bits);
FD_SET(in->fd, &bits);
tests/libtest/lib530.c+1 -1
@@ -162,7 +162,7 @@ static int curlTimerCallback(CURLM *multi, long timeout_ms, void *userp)
}
if(timeout_ms != -1) {
*timeout = tutil_tvnow();
- timeout->tv_usec += timeout_ms * 1000;
+ timeout->tv_usec += (int)timeout_ms * 1000;
}
else {
timeout->tv_sec = -1;
tests/libtest/lib582.c+1 -1
@@ -136,7 +136,7 @@ static int curlTimerCallback(CURLM *multi, long timeout_ms, void *userp)
(void)multi; /* unused */
if(timeout_ms != -1) {
*timeout = tutil_tvnow();
- timeout->tv_usec += timeout_ms * 1000;
+ timeout->tv_usec += (int)timeout_ms * 1000;
}
else {
timeout->tv_sec = -1;