From e9434cff87762255bc055e04a2695e70a53c41a2 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Thu, 18 Oct 2018 10:56:33 +0100 Subject: [PATCH] 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 --- src/mem/cache/tags/fa_lru.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2