Re: AW: [squid-users] Squid 2.5 Stable 10: warnings

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 31 May 2005 15:36:08 +0200 (CEST)

On Tue, 31 May 2005, Rost Werner ZFBE GMT-ISN wrote:

> Now I see: It is hardware dependent. For "COMPAQ Professional
> Workstation XP1000" we get these warnings for stable 9 and stable 10.
> For "Digital Personal WorkStation 600au" there are no warnings.

Most of the warnings suggests gcc compiled for very large pointers making
boolean expressions on pointers unreliable.

Cause to the warnings: sloppy programmers (myself included). Not very used
to 64-bit or bigger architectures.

If you know a little C you can help by going over each warning and correct
the code. Many warnings is from conditional expressions on pointers such
as

     assert(a);

where a is a pointer. This should be

     asser(a != NULL);

and similarily in if expressions

     if (!somepointer)

should be

     if (somepointer == NULL)

etc.

Fix what you can, when unsure send the warning along with a few
surrounding source lines to squid-dev@squid-cache.org and we will try to
help.

Squid-3 quite likely also needs similar massaging, but it's likely to get
stuck on a lot more as the 2GB patch has not yet got into Squid-3.

Regards
Henrik
Received on Tue May 31 2005 - 07:36:10 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Jun 01 2005 - 12:00:04 MDT