diff options
author | Freddie 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 |
commit | f6315d5e5b7b71515ef051711e5f818a42d6b3b3 (patch) | |
tree | 197f51e416132298d9c2571163e2be72e735c115 /src/flash/nor/pic32mx.c | |
parent | ae02a0e51708d292b4dff67c12baef1b62b367fa (diff) | |
download | riscv-openocd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.zip riscv-openocd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.tar.gz riscv-openocd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.tar.bz2 |
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes
Diffstat (limited to 'src/flash/nor/pic32mx.c')
-rw-r--r-- | src/flash/nor/pic32mx.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c index a8392eb..69321ac 100644 --- a/src/flash/nor/pic32mx.c +++ b/src/flash/nor/pic32mx.c @@ -313,11 +313,8 @@ static int pic32mx_erase(struct flash_bank *bank, int first, int last) static int pic32mx_protect(struct flash_bank *bank, int set, int first, int last) { - struct pic32mx_flash_bank *pic32mx_info = NULL; struct target *target = bank->target; - pic32mx_info = bank->driver_priv; - if (target->state != TARGET_HALTED) { LOG_ERROR("Target not halted"); |