From 98a66c48091be6c081f1b2fee04ef47e7f1c2070 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Tue, 7 Sep 2010 18:38:06 +0200 Subject: [PATCH] warning: fix silly -O3 warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some versions of GCC don't pick up that local variables are set in all code paths. Signed-off-by: Øyvind Harboe --- src/jtag/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5