summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-09-07 18:38:06 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-09-07 18:39:04 +0200
commit98a66c48091be6c081f1b2fee04ef47e7f1c2070 (patch)
treeaf07db5597be0a7aeb0d7a0550d5d5a9dfa11f0e
parent35af12d3e729e053b2e83cd0322f9347af652ef3 (diff)
downloadopenocd_libswd-98a66c48091be6c081f1b2fee04ef47e7f1c2070.tar.gz
openocd_libswd-98a66c48091be6c081f1b2fee04ef47e7f1c2070.tar.bz2
openocd_libswd-98a66c48091be6c081f1b2fee04ef47e7f1c2070.tar.xz
openocd_libswd-98a66c48091be6c081f1b2fee04ef47e7f1c2070.zip
warning: fix silly -O3 warning
Some versions of GCC don't pick up that local variables are set in all code paths. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-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 6f9d92a5..dd3a2a61 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -1634,7 +1634,7 @@ int jtag_config_rclk(unsigned fallback_speed_khz)
int jtag_get_speed(void)
{
- int speed;
+ int speed = 0; /* avoid -O3 warning */
switch(clock_mode)
{
case CLOCK_MODE_SPEED: