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.
Re: CURLOPT_WRITEFUNCTION issues - warning: curl_easy_setopt expects a curl_write_callback argument
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Gavin Henry via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 21 Jan 2022 11:16:46 +0000
Which is the same result in the end :-(
static curl_write_callback curl_to_jansson_to_version(void *buffer, size_t size,
size_t nmemb, json_t *json)
{
...
return (curl_write_callback)(size * nmemb);
}
tests/unit_tests/test_http_api.c:60:9: error: call to
‘_curl_easy_setopt_err_write_callback’ declared with attribute
warning: curl_easy_setopt expects a curl_write_callback argument for
this option [-Werror=attribute-warning]
60 | curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
Date: Fri, 21 Jan 2022 11:16:46 +0000
Which is the same result in the end :-(
static curl_write_callback curl_to_jansson_to_version(void *buffer, size_t size,
size_t nmemb, json_t *json)
{
...
return (curl_write_callback)(size * nmemb);
}
tests/unit_tests/test_http_api.c:60:9: error: call to
‘_curl_easy_setopt_err_write_callback’ declared with attribute
warning: curl_easy_setopt expects a curl_write_callback argument for
this option [-Werror=attribute-warning]
60 | curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-01-21