]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed 'mem' as a local variable in storeSwapMetaBuild because
authorwessels <>
Tue, 4 Jan 2000 02:33:14 +0000 (02:33 +0000)
committerwessels <>
Tue, 4 Jan 2000 02:33:14 +0000 (02:33 +0000)
its only used in an assertion.   If we disable assertions with NODEBUG
then we get 'unused variable' warnings from the compiler.

src/store_swapmeta.cc

index 305e7865e14c16534afdf0dc817624874ba4e34a..9cbbe9d14a73384b3db0000cab5ebcb3c71a3418 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_swapmeta.cc,v 1.8 1999/10/04 19:09:54 wessels Exp $
+ * $Id: store_swapmeta.cc,v 1.9 2000/01/03 19:33:14 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager Swapfile Metadata
  * AUTHOR: Kostas Anagnostakis
@@ -64,11 +64,10 @@ storeSwapTLVFree(tlv * n)
 tlv *
 storeSwapMetaBuild(StoreEntry * e)
 {
-    MemObject *mem = e->mem_obj;
     tlv *TLV = NULL;           /* we'll return this */
     tlv **T = &TLV;
     const char *url;
-    assert(mem != NULL);
+    assert(e->mem_obj != NULL);
     assert(e->swap_status == SWAPOUT_WRITING);
     url = storeUrl(e);
     debug(20, 3) ("storeSwapMetaBuild: %s\n", url);