summaryrefslogtreecommitdiff
path: root/src/sim/process.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-02-19 05:56:06 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-02-19 05:56:06 -0500
commitc10098f28be209e90277925e3f983b7e62d1d037 (patch)
tree0b9c9f562c030ae74ae0a5fea25f804fdb84cec0 /src/sim/process.cc
parent860155a5fc48f983e9af40c19bf8db8250709c26 (diff)
downloadgem5-c10098f28be209e90277925e3f983b7e62d1d037.tar.xz
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.
Diffstat (limited to 'src/sim/process.cc')
-rw-r--r--src/sim/process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc
index 08636b2c4..9921ef0b7 100644
--- a/src/sim/process.cc
+++ b/src/sim/process.cc
@@ -167,7 +167,7 @@ Process::Process(ProcessParams * params)
// mark remaining fds as free
for (int i = 3; i <= MAX_FD; ++i) {
- Process::FdMap *fdo = &fd_map[i];
+ fdo = &fd_map[i];
fdo->fd = -1;
}