From: Amos Jeffries Date: Sun, 17 Apr 2011 13:25:44 +0000 (-0600) Subject: Portability: fix some compiler complaints X-Git-Tag: SQUID_3_1_12_1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=370a6225145bcdb946485319118a18097f3fa826;p=thirdparty%2Fsquid.git Portability: fix some compiler complaints --- diff --git a/src/LeakFinder.h b/src/LeakFinder.h index dfb2ae8423..d5611cfa0e 100644 --- a/src/LeakFinder.h +++ b/src/LeakFinder.h @@ -1,10 +1,10 @@ - - - #ifndef SQUID_LEAKFINDER_H #define SQUID_LEAKFINDER_H #if USE_LEAKFINDER + +#include "hash.h" + #define leakAdd(p,l) if (l) l->add(p,__FILE__,__LINE__) #define leakTouch(p,l) if (l) l->touch(p,__FILE__,__LINE__) #define leakFree(p,l) if (l) l->free(p,__FILE__,__LINE__) diff --git a/src/adaptation/icap/ModXact.cc b/src/adaptation/icap/ModXact.cc index 2e0fbc90e7..5fffd340e2 100644 --- a/src/adaptation/icap/ModXact.cc +++ b/src/adaptation/icap/ModXact.cc @@ -1620,7 +1620,6 @@ void Adaptation::Icap::VirginBodyAct::disable() void Adaptation::Icap::VirginBodyAct::progress(size_t size) { Must(active()); - Must(static_cast(size) >= 0); theStart += static_cast(size); } diff --git a/src/htcp.h b/src/htcp.h index 83f63f37f8..bcbc00be60 100644 --- a/src/htcp.h +++ b/src/htcp.h @@ -33,6 +33,7 @@ #if USE_HTCP #include "HttpHeader.h" +#include "typedefs.h" class IpAddress;