summaryrefslogtreecommitdiff
path: root/src/target/breakpoints.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/breakpoints.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/breakpoints.c')
-rw-r--r--src/target/breakpoints.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c
index 80f98dc1..e6eb6738 100644
--- a/src/target/breakpoints.c
+++ b/src/target/breakpoints.c
@@ -159,13 +159,11 @@ static void breakpoint_free(struct target *target, struct breakpoint *breakpoint
void breakpoint_remove_internal(struct target *target, uint32_t address)
{
struct breakpoint *breakpoint = target->breakpoints;
- struct breakpoint **breakpoint_p = &target->breakpoints;
while (breakpoint)
{
if (breakpoint->address == address)
break;
- breakpoint_p = &breakpoint->next;
breakpoint = breakpoint->next;
}
@@ -332,13 +330,11 @@ static void watchpoint_free(struct target *target, struct watchpoint *watchpoint
void watchpoint_remove(struct target *target, uint32_t address)
{
struct watchpoint *watchpoint = target->watchpoints;
- struct watchpoint **watchpoint_p = &target->watchpoints;
while (watchpoint)
{
if (watchpoint->address == address)
break;
- watchpoint_p = &watchpoint->next;
watchpoint = watchpoint->next;
}