[SQU] compiler warnings

From: Florin Andrei <[email protected]>
Date: 16 Feb 2001 15:00:21 -0800

I'm trying to compile Squid-2.4-200102160000 on Irix-6.5 with the
mipspro compiler.
After enabling some warnings, i saw some interesting stuff.

I got this very often (but i suppose is no big deal):

cc-1107 cc: WARNING File = structs.h, Line = 1869
  A signed bit field has a length of 1 bit.

        int closing:1;
            ^

But i also got this:

cc-1183 cc: WARNING File = wccp.c, Line = 228
  An unsigned integer is being compared to zero.

      if (len < 0)
              ^

And this (which seems more ugly):

cc-1183 cc: WARNING File = store_swapmeta.c, Line = 133
  An unsigned integer is being compared to zero.

        if (type < STORE_META_VOID || type > STORE_META_END) {
                 ^

Also, check this out:

cc-1188 cc: WARNING File = HttpRequest.c, Line = 139
  The indicated type qualifier is meaningless on cast type.

        strLen(req->urlpath) + 1 +
        ^

I also have some other warnings; if it's of any interest, i can send you
the entire list.

-- 
Florin Andrei
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Fri Feb 16 2001 - 16:05:54 MST

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