Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
curl 7.75.0 fails to compile
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Firefox OS via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 4 Feb 2021 18:02:33 +0100
Hi,
I got following compilation error in 7.75 release.
It was OK in curl 7.74.
The attached patch fixes the compilation problem in my case.
http.c:1963:10: error: conflicting types for ‘Curl_add_timecondition’
1963 | CURLcode Curl_add_timecondition(const struct connectdata *conn,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from urldata.h:136,
from http.c:52:
http.h:67:10: note: previous declaration of ‘Curl_add_timecondition’ was here
67 | CURLcode Curl_add_timecondition(struct Curl_easy *data,
| ^~~~~~~~~~~~~~~~~~~~~~
http.c: In function ‘Curl_http’:
http.c:3167:37: warning: passing argument 1 of ‘Curl_add_timecondition’ from incompatible pointer type [-Wincompatible-pointer-types]
3167 | result = Curl_add_timecondition(data, &req);
| ^~~~
| |
| struct Curl_easy *
http.c:1963:59: note: expected ‘const struct connectdata *’ but argument is of type ‘struct Curl_easy *’
1963 | CURLcode Curl_add_timecondition(const struct connectdata *conn,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-02-04
Date: Thu, 4 Feb 2021 18:02:33 +0100
Hi,
I got following compilation error in 7.75 release.
It was OK in curl 7.74.
The attached patch fixes the compilation problem in my case.
http.c:1963:10: error: conflicting types for ‘Curl_add_timecondition’
1963 | CURLcode Curl_add_timecondition(const struct connectdata *conn,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from urldata.h:136,
from http.c:52:
http.h:67:10: note: previous declaration of ‘Curl_add_timecondition’ was here
67 | CURLcode Curl_add_timecondition(struct Curl_easy *data,
| ^~~~~~~~~~~~~~~~~~~~~~
http.c: In function ‘Curl_http’:
http.c:3167:37: warning: passing argument 1 of ‘Curl_add_timecondition’ from incompatible pointer type [-Wincompatible-pointer-types]
3167 | result = Curl_add_timecondition(data, &req);
| ^~~~
| |
| struct Curl_easy *
http.c:1963:59: note: expected ‘const struct connectdata *’ but argument is of type ‘struct Curl_easy *’
1963 | CURLcode Curl_add_timecondition(const struct connectdata *conn,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
--
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
- text/x-patch attachment: 001-fix_compilation_of_7.75.patch