]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed "pointless comparison of unsigned integer with 0" to make ICC happier.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 15 Sep 2011 14:54:06 +0000 (08:54 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 15 Sep 2011 14:54:06 +0000 (08:54 -0600)
Besides making ICC compiler happier, we should not check parameter values that
are just passed to other Squid code. Let the recepient code check them.

src/ipc/StoreMap.cc

index 5499decd7dff2f958499044c8b67e5fcf7b40291..530edcf728f1c32167977ca43630a5e233becbe7 100644 (file)
@@ -13,7 +13,6 @@ Ipc::StoreMap::Owner *
 Ipc::StoreMap::Init(const char *const path, const int limit, const size_t extrasSize)
 {
     assert(limit > 0); // we should not be created otherwise
-    assert(extrasSize >= 0);
     Owner *const owner = shm_new(Shared)(path, limit, extrasSize);
     debugs(54, 5, HERE << "new map [" << path << "] created: " << limit);
     return owner;