summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:24:47 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:24:47 +0200
commit43a9282203d5fc0cf9086a18590c8ff89184b320 (patch)
treed6ea7ef9e00faecf348d8bc3167a7317f66317dd
parent78b7a571e9f9c836189c06c095eb98a57761bc4f (diff)
downloadopenocd+libswd-43a9282203d5fc0cf9086a18590c8ff89184b320.tar.gz
openocd+libswd-43a9282203d5fc0cf9086a18590c8ff89184b320.tar.bz2
openocd+libswd-43a9282203d5fc0cf9086a18590c8ff89184b320.tar.xz
openocd+libswd-43a9282203d5fc0cf9086a18590c8ff89184b320.zip
mips32: -Wshadow warning fixes
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/target/mips32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/mips32.c b/src/target/mips32.c
index 0923a792..2547b011 100644
--- a/src/target/mips32.c
+++ b/src/target/mips32.c
@@ -388,7 +388,7 @@ int mips32_run_algorithm(struct target *target, int num_mem_params,
}
/* refresh core register cache */
- for (unsigned i = 0; i < MIPS32NUMCOREREGS; i++)
+ for (i = 0; i < MIPS32NUMCOREREGS; i++)
{
if (!mips32->core_cache->reg_list[i].valid)
mips32->read_core_reg(target, i);
@@ -404,7 +404,7 @@ int mips32_run_algorithm(struct target *target, int num_mem_params,
}
}
- for (int i = 0; i < num_reg_params; i++)
+ for (i = 0; i < num_reg_params; i++)
{
struct reg *reg = register_get_by_name(mips32->core_cache, reg_params[i].reg_name, 0);