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>
__archive__
Øyvind Harboe 2010-09-07 18:38:06 +02:00
parent 35af12d3e7
commit 98a66c4809
1 changed files with 1 additions and 1 deletions

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: