summaryrefslogtreecommitdiff
path: root/src/server
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/server
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/server')
-rw-r--r--src/server/gdb_server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index b29ee4f8..b6921ff2 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -1731,11 +1731,10 @@ static int gdb_memory_map(struct connection *connection,
for (i = 0; i < flash_get_bank_count(); i++) {
int j;
unsigned sector_size = 0;
- uint32_t start, end;
+ uint32_t start;
p = banks[i];
start = p->base;
- end = p->base + p->size;
if (ram_start < p->base)
xml_printf(&retval, &xml, &pos, &size,