]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove always-true assert in ClpMap (#726)
authorAmos Jeffries <yadij@users.noreply.github.com>
Thu, 17 Sep 2020 01:06:29 +0000 (01:06 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 18 Sep 2020 13:25:40 +0000 (13:25 +0000)
Always-true assert()s are a build error for the latest GCC.

src/base/ClpMap.h

index 75e47a1ab7f59975e0597d9400bb2a0988890467..60767455a30ddc5f74de0e2374db3a525a67e89c 100644 (file)
@@ -144,7 +144,6 @@ template <class Key, class Value, uint64_t MemoryUsedBy(const Value &)>
 void
 ClpMap<Key, Value, MemoryUsedBy>::setMemLimit(const uint64_t newLimit)
 {
-    assert(newLimit >= 0);
     if (memUsed_ > newLimit)
         trim(memLimit_ - newLimit);
     memLimit_ = newLimit;