From: Spencer Oliver Date: Mon, 12 Jul 2010 19:04:57 +0000 (+0100) Subject: jtag: fix shadow issues in adapter_init X-Git-Tag: v0.5.0-rc1~525 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66;p=openocd jtag: fix shadow issues in adapter_init Use global jtag_only rather than local static. Signed-off-by: Spencer Oliver --- diff --git a/src/jtag/core.c b/src/jtag/core.c index f7bbe8dc..352985ff 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -1357,7 +1357,6 @@ int adapter_init(struct command_context *cmd_ctx) * the legacy drivers are JTAG-only */ if (!transports_are_declared()) { - static const char *jtag_only[] = { "jtag", NULL, }; LOG_ERROR("Adapter driver '%s' did not declare " "which transports it allows; assuming " "JTAG-only", jtag->name);