Browse Source

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>
tags/v0.5.0-rc1
Øyvind Harboe 13 years ago
parent
commit
98a66c4809
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/jtag/core.c

+ 1
- 1
src/jtag/core.c View File

@@ -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:


Loading…
Cancel
Save