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/cpu/o3/fu_pool.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cpu/o3/fu_pool.cc') diff --git a/src/cpu/o3/fu_pool.cc b/src/cpu/o3/fu_pool.cc index c0db5cbfc..78af428db 100644 --- a/src/cpu/o3/fu_pool.cc +++ b/src/cpu/o3/fu_pool.cc @@ -135,10 +135,7 @@ FUPool::FUPool(const Params *p) numFU++; // Add the appropriate number of copies of this FU to the list - ostringstream s; - - s << (*i)->name() << "(0)"; - fu->name = s.str(); + fu->name = (*i)->name() + "(0)"; funcUnits.push_back(fu); for (int c = 1; c < (*i)->number; ++c) { -- cgit v1.2.3