diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-02-19 05:56:06 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-02-19 05:56:06 -0500 |
commit | c10098f28be209e90277925e3f983b7e62d1d037 (patch) | |
tree | 0b9c9f562c030ae74ae0a5fea25f804fdb84cec0 /src/sim/clocked_object.hh | |
parent | 860155a5fc48f983e9af40c19bf8db8250709c26 (diff) | |
download | gem5-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/clocked_object.hh')
-rw-r--r-- | src/sim/clocked_object.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/clocked_object.hh b/src/sim/clocked_object.hh index e04e9338d..bf132bee1 100644 --- a/src/sim/clocked_object.hh +++ b/src/sim/clocked_object.hh @@ -184,8 +184,8 @@ class ClockedObject : public SimObject inline Tick clockPeriod() const { return clock; } - inline Cycles ticksToCycles(Tick tick) const - { return Cycles(tick / clock); } + inline Cycles ticksToCycles(Tick t) const + { return Cycles(t / clock); } }; |