From: Øyvind Harboe Date: Tue, 7 Sep 2010 16:38:06 +0000 (+0200) Subject: warning: fix silly -O3 warning X-Git-Tag: v0.5.0-rc1~431 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=98a66c48091be6c081f1b2fee04ef47e7f1c2070;p=openocd 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 --- 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: