summaryrefslogtreecommitdiff
path: root/src/flash/nor/core.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/flash/nor/core.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/flash/nor/core.c')
-rw-r--r--src/flash/nor/core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c
index ab1bf031..4b5fe7dd 100644
--- a/src/flash/nor/core.c
+++ b/src/flash/nor/core.c
@@ -621,7 +621,6 @@ int flash_write_unlock(struct target *target, struct image *image,
{
uint32_t buffer_size;
uint8_t *buffer;
- int section_first;
int section_last;
uint32_t run_address = sections[section]->base_address + section_offset;
uint32_t run_size = sections[section]->size - section_offset;
@@ -649,7 +648,6 @@ int flash_write_unlock(struct target *target, struct image *image,
}
/* collect consecutive sections which fall into the same bank */
- section_first = section;
section_last = section;
padding[section] = 0;
while ((run_address + run_size - 1 < c->base + c->size - 1)