summaryrefslogtreecommitdiff
path: root/src/target/arm946e.c
diff options
context:
space:
mode:
authorFreddie Chopin <freddie_chopin@op.pl>2011-06-03 22:10:03 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-06-04 09:35:13 +0200
commitf6315d5e5b7b71515ef051711e5f818a42d6b3b3 (patch)
tree197f51e416132298d9c2571163e2be72e735c115 /src/target/arm946e.c
parentae02a0e51708d292b4dff67c12baef1b62b367fa (diff)
downloadopenocd+libswd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.tar.gz
openocd+libswd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.tar.bz2
openocd+libswd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.tar.xz
openocd+libswd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.zip
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes
Diffstat (limited to 'src/target/arm946e.c')
-rw-r--r--src/target/arm946e.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/target/arm946e.c b/src/target/arm946e.c
index 09227185..d9d953d1 100644
--- a/src/target/arm946e.c
+++ b/src/target/arm946e.c
@@ -383,7 +383,6 @@ uint32_t arm946e_invalidate_dcache(struct target *target, uint32_t address,
uint32_t shift = 0;
uint32_t cur_addr = 0x0;
uint32_t cp15_idx, set, way, dtag;
- int nb_idx;
uint32_t i = 0;
int retval;
@@ -403,7 +402,6 @@ uint32_t arm946e_invalidate_dcache(struct target *target, uint32_t address,
shift = csize - 0x3; /* Now 0 = 4KB, 1 = 8KB, ... */
csize = 1 << (12 + shift);
- nb_idx = (csize / 32);
set = (cur_addr >> 5) & 0xff; /* set field is 8 bits long */