cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_setopt() typechecker, try2

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 27 Feb 2008 13:14:49 +0100 (CET)

On Wed, 27 Feb 2008, Michal Marek wrote:

> That's strange, did you compile with optimizations?

Oh, me is silly! I didn't use -O at all, just -W and -Wall... with -O it works
just fine!

And I get to see this:

debugit.c:49: warning: call to '_curl_easy_setopt_err_long' declared with
attribute warning: curl_easy_setopt expects a long argument for this option

... where line 49 is:

         curl_easy_setopt(curl, CURLOPT_FTPLISTONLY, TRUE);

(and TRUE is a #define 1, and this is a 32bit arch)

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-02-27