From 370a6225145bcdb946485319118a18097f3fa826 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 17 Apr 2011 07:25:44 -0600 Subject: [PATCH] Portability: fix some compiler complaints --- src/LeakFinder.h | 6 +++--- src/adaptation/icap/ModXact.cc | 1 - src/htcp.h | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.47.3