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

From: Steve Bertrand <iaccounts_at_ibctech.ca>
Date: Tue, 27 May 2008 12:06:23 -0400

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"

I don't know if this has any relevance to anything else, so I'm just
hoping this may help someone else.

Steve
Received on Tue May 27 2008 - 16:08:36 MDT

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