curl-library
curl_easy_setopt expects a curl_write_callback argument
Date: Thu, 20 Nov 2014 14:26:44 -0800
I wrote a simple streaming function for R [1] that uses
CURLOPT_WRITEFUNCTION to buffer data, similar to the getinmemory.c
example. The app works fine on all platforms, but when I compile on
windows (R uses mingw-w64 with gcc 4.6.3) it gives the following
warning:
curl.c: In function 'rcurl_open':
curl.c:152:3: warning: call to
'_curl_easy_setopt_err_write_callback' declared with attribute
warning: curl_easy_setopt expects a curl_write_callback argument for
this option [enabled by default]
What am I doing wrong? The callback function has the standard
arguments and returns size_t. The maintainers of the R package
repositories are allergic to compiler warnings, so I'd really like to
get rid of it.
[1] https://github.com/jeroenooms/curl/blob/master/src/curl.c#L152
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-20