summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-06-07 17:58:41 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-06-07 17:58:41 +0200
commit33f9bec9ec5fe370e7a1398c53a7e97409f669ba (patch)
tree8737685d520afda7370dda215a082c6a04ef7249 /src
parent1cfb2287a67c1f78b76583b2e5ed83ca3560b0d5 (diff)
downloadopenocd_libswd-33f9bec9ec5fe370e7a1398c53a7e97409f669ba.tar.gz
openocd_libswd-33f9bec9ec5fe370e7a1398c53a7e97409f669ba.tar.bz2
openocd_libswd-33f9bec9ec5fe370e7a1398c53a7e97409f669ba.tar.xz
openocd_libswd-33f9bec9ec5fe370e7a1398c53a7e97409f669ba.zip
Silence -O3 warning
Diffstat (limited to 'src')
-rw-r--r--src/jtag/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index 0a9d72a8..22d0b8c3 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -1672,7 +1672,7 @@ int jtag_get_speed(int *speed)
int jtag_get_speed_readable(int *khz)
{
- int jtag_speed_var;
+ int jtag_speed_var = 0;
int retval = jtag_get_speed(&jtag_speed_var);
if (retval != ERROR_OK)
return retval;