diff options
author | Spencer Oliver <ntfreak@users.sourceforge.net> | 2010-07-12 20:04:57 +0100 |
---|---|---|
committer | Spencer Oliver <ntfreak@users.sourceforge.net> | 2010-07-12 20:04:57 +0100 |
commit | f129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66 (patch) | |
tree | 4ad6168c9defd48353f5f3a6f1d7b5c0b56cde27 | |
parent | e521f6415b3ca293ab496d303e092d5312f6e83d (diff) | |
download | openocd+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>
-rw-r--r-- | src/jtag/core.c | 1 |
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); |