From c10098f28be209e90277925e3f983b7e62d1d037 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Tue, 19 Feb 2013 05:56:06 -0500 Subject: scons: Fix up numerous warnings about name shadowing This patch address the most important name shadowing warnings (as produced when using gcc/clang with -Wshadow). There are many locations where constructor parameters and function parameters shadow local variables, but these are left unchanged. --- src/mem/cache/tags/fa_lru.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mem/cache/tags') diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index 1a607dc80..efb8b89df 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -270,16 +270,16 @@ bool FALRU::check() { FALRUBlk* blk = head; - int size = 0; + int tot_size = 0; int boundary = 1<<17; int j = 0; int flags = cacheMask; while (blk) { - size += blkSize; + tot_size += blkSize; if (blk->inCache != flags) { return false; } - if (size == boundary && blk != tail) { + if (tot_size == boundary && blk != tail) { if (cacheBoundaries[j] != blk) { return false; } -- cgit v1.2.3