cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: wishlist: curl_easy_setopt(3): add better bad input warning?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Mar 2008 13:32:14 +0100 (CET)

On Wed, 5 Mar 2008, Michal Marek wrote:

> Actually, protection against this kind of error can be easily done using
> standard C preprocessor:
>
> #define curl_easy_setopt(handle, option, value) \
> curl_easy_setopt(handle, option, value)

Ah true. But I have this gut feeling that if we'd enable this for everyone
unconditonally, one of the more obscure and outdated compilers will scream at
us at some point. I think I would rather prefer to at least start with
enabling this stunt on the compilers we actually know will support it fine.
Such as gcc and msvc (should still cover 98% of our user-base).

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