Re: Bugs in Squid2.1.PRE1

From: Alex Rousskov <rousskov@dont-contact.us>
Date: Fri, 23 Oct 1998 10:53:55 -0600 (MDT)

On Fri, 23 Oct 1998, Pedro Ribeiro wrote:

> Also when compiling a warning is reported:
>
> >gcc -g -O2 -Wall -I. -I../include -I../include -c HttpReply.c -o
> HttpReply.o
> >HttpReply.c: In function `httpReplyUpdateOnNotModified':
> >HttpReply.c:269: warning: passing arg 3 of `httpHeaderUpdate' from
> >incompatible pointer type

It's a compiler bug, IMO. The patch attached, but since I cannot reproduce
the warning (even with --pedantic), I am not sure it helps.
 
Alex.

Index: HttpReply.c
===================================================================
RCS file: /surf1/CVS/squid/src/HttpReply.c,v
retrieving revision 1.32
diff -r1.32 HttpReply.c
269c269
< httpHeaderUpdate(&rep->header, &freshRep->header, &Denied304HeadersMask);

---
>     httpHeaderUpdate(&rep->header, &freshRep->header, (const HttpHeaderMask*)&Denied304HeadersMask);
Received on Fri Oct 23 1998 - 10:51:07 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:46 MST