Re: [squid-users] Error: comparison between signed and unsigned int

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 28 May 2008 16:01:33 +1200 (NZST)

> Thanks to all who helped resolve the 2358 bug, but I ran into another
> snag, although was able to correct it.
>
> pearl# uname -a
> FreeBSD pearl.ibctech.ca 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Fri Feb 29
> 11:53:16 EST 2008
>
> cc1plus: warnings being treated as errors
> main.cc: In function 'int main(int, char**)':
> main.cc:1169: warning: comparison between signed and unsigned integer
> expressions
> *** Error code 1
>
> Stop in /usr/local/src/squid-3.HEAD-20080526/src.
> *** Error code 1
>
>
> ...full output:
>
> http://ibctech.ca/bugs/squid_sign_compare.txt
>
> I managed to get around the problem and complete the make and install by
> adding the following to the configure line:
>
> CFLAGS="-Wno-sign-compare" CXXFLAGS="-Wno-sign-compare"

Thats not a great idea. There are times when the signed/unsigned
difference really matters.

I have a temporary fix. But need a bug report to file it against since its
not going into HEAD without a review.

Amos
Received on Wed May 28 2008 - 04:01:36 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 05 2008 - 01:05:14 MDT