cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: warning with gcc 4.2.1 and mprintf.c

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 8 Aug 2007 11:29:01 -0700

On Wed, Aug 08, 2007 at 07:51:50PM +0200, Guenter Knauf wrote:
> while testing with the latest MingW32 gcc 4.2.1 I got a warning in mprintf.c:
>
> mprintf.c: In function 'dprintf_formatf':
> mprintf.c:617: warning: passing argument 1 of 'dprintf_Pass1' discards qualifiers from pointer target type
>
> I dont know what gcc 4.2.1 doesnt like here, but this patch makes it calm again:
[...]
> should I commit this, or is latest gcc just crazy?

gcc may be crazy, but the patch looks harmless to me. There are a few more
opportunities for const pointers in that file, but the number of type casts
needed probably won't go down much.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-08-08