From: wessels <> Date: Tue, 4 Jan 2000 02:33:14 +0000 (+0000) Subject: Removed 'mem' as a local variable in storeSwapMetaBuild because X-Git-Tag: SQUID_3_0_PRE1~2097 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10602161fe5fea4ab65296c9e82220819fbb9bf9;p=thirdparty%2Fsquid.git Removed 'mem' as a local variable in storeSwapMetaBuild because its only used in an assertion. If we disable assertions with NODEBUG then we get 'unused variable' warnings from the compiler. --- diff --git a/src/store_swapmeta.cc b/src/store_swapmeta.cc index 305e7865e1..9cbbe9d14a 100644 --- a/src/store_swapmeta.cc +++ b/src/store_swapmeta.cc @@ -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);