cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: examples compiler warnings

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Fri, 23 Sep 2011 17:29:31 -0500

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
Received on 2011-09-24