curl-library
Re: examples compiler warnings
Date: Fri, 23 Sep 2011 23:52:11 +0100
Please put that disclaimer at
http://curl.haxx.se/libcurl/c/example.html and avoid cluttering each
sample file with it.
On 23 September 2011 23:29, Jeff Pohlmeyer <yetanothergeek_at_gmail.com> wrote:
> On Fri, Sep 23, 2011 at 7:07 AM, Daniel Stenberg wrote:
>
>> That's kind of what I'm thinking as well. The examples need to
>> remain simple and the focus needs to be on the libcurl API.
>
>> In fact, that's also why we don't do proper error checking etc in
>> most of the examples, even though of course we encourage all users
>> to do that in real life.
>
>
>
> How about a brief, boilerplate comment in each example mentioning the
> standpoint on compiler warnings and error checking?
>
> /*
> * NOTE: This file is intended as an example only. In the interest of
> * simplicity and clarity, it might not include proper error handling
> * and might produce compiler warnings on some platforms. Real-world
> * applications should pay more attention to these issues.
> */
>
>
> - Jeff
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-24