From: Nikos Nikoleris Date: Thu, 18 Oct 2018 09:56:33 +0000 (+0100) Subject: mem-cache: Fix unused variable warning in FALRU:invalidate() X-Git-Tag: v19.0.0.0~1466 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9434cff87762255bc055e04a2695e70a53c41a2;p=gem5.git mem-cache: Fix unused variable warning in FALRU:invalidate() Change-Id: I3b902045433ca56b3e62c251158e784b5fa9e4d7 Signed-off-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/13600 Reviewed-by: Daniel Carvalho --- diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index 5c2d05b38..01f0aa256 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -124,7 +124,8 @@ void FALRU::invalidate(CacheBlk *blk) { // Erase block entry reference in the hash table - auto num_erased = tagHash.erase(std::make_pair(blk->tag, blk->isSecure())); + auto num_erased M5_VAR_USED = + tagHash.erase(std::make_pair(blk->tag, blk->isSecure())); // Sanity check; only one block reference should be erased assert(num_erased == 1);