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 <curl-library_at_lists.haxx.se>
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);
       assert_non_null(json);

then my CLion moans, but is OK :-)

"The value is never used". I'll leave gcc and clang to sort.
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-01-21