Search squid archive

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx 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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux