curl / Mailing Lists / curl-library / Single Mail
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

From: Gavin Henry via curl-library <>
Date: Fri, 21 Jan 2022 12:34:12 +0000

Thanks. Switched it to:

static size_t curl_to_jansson_to_version(void *buffer, size_t size,
                                    size_t nmemb, void *outstream)
       json_t *json = outstream;
       json = json_loadb(buffer, size * nmemb, 0, NULL);

then my CLion moans, but is OK :-)

"The value is never used". I'll leave gcc and clang to sort.
Received on 2022-01-21