summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-07-12 20:04:57 +0100
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-07-12 20:04:57 +0100
commitf129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66 (patch)
tree4ad6168c9defd48353f5f3a6f1d7b5c0b56cde27 /src
parente521f6415b3ca293ab496d303e092d5312f6e83d (diff)
downloadopenocd_libswd-f129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66.tar.gz
openocd_libswd-f129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66.tar.bz2
openocd_libswd-f129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66.tar.xz
openocd_libswd-f129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66.zip
jtag: fix shadow issues in adapter_init
Use global jtag_only rather than local static. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/jtag/core.c1
1 files changed, 0 insertions, 1 deletions
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);