cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: warning with gcc 4.2.1 and mprintf.c

From: Duncan McQueen <dwmcqueen_at_gmail.com>
Date: Wed, 8 Aug 2007 13:51:59 -0500

Just to make sure - since there is no official 4.2.1 port for MinGW -
are the same results seen with 4.2.1 on other platforms?

On 8/8/07, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> 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