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__
parent
35af12d3e7
commit
98a66c4809
|
@ -1634,7 +1634,7 @@ int jtag_config_rclk(unsigned fallback_speed_khz)
|
||||||
|
|
||||||
int jtag_get_speed(void)
|
int jtag_get_speed(void)
|
||||||
{
|
{
|
||||||
int speed;
|
int speed = 0; /* avoid -O3 warning */
|
||||||
switch(clock_mode)
|
switch(clock_mode)
|
||||||
{
|
{
|
||||||
case CLOCK_MODE_SPEED:
|
case CLOCK_MODE_SPEED:
|
||||||
|
|
Loading…
Reference in New Issue