mem-cache: Fix unused variable warning in FALRU:invalidate()
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 18 Oct 2018 09:56:33 +0000 (10:56 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 18 Oct 2018 10:21:47 +0000 (10:21 +0000)
Change-Id: I3b902045433ca56b3e62c251158e784b5fa9e4d7
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/13600
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
src/mem/cache/tags/fa_lru.cc

index 5c2d05b3834841de6b7179c7a1da4ca2edaa185c..01f0aa256ebc4f76a372c6a1c378973c590268c4 100644 (file)
@@ -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);