From: Alexander Osipenko Date: Fri, 25 May 2012 10:39:13 +0000 (+0400) Subject: J-Link: Initialize .transports to suppress warning. X-Git-Tag: v0.6.0-rc1~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=321948b41f9a697c02d7c3f2ac7df71220250907;p=openocd J-Link: Initialize .transports to suppress warning. jtag_interface.transports field was left uninitialized, which triggers warning message on program startup. Although hardware natively supports SWD interface, no software support currently present, so the value choosen to be . Change-Id: I2da41790b1850950af416cec4362d5b7bf927b2b Signed-off-by: Alexander Osipenko Reviewed-on: http://openocd.zylin.com/670 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Spencer Oliver --- diff --git a/src/jtag/drivers/jlink.c b/src/jtag/drivers/jlink.c index 54fc4c11..33b15d29 100644 --- a/src/jtag/drivers/jlink.c +++ b/src/jtag/drivers/jlink.c @@ -1298,6 +1298,7 @@ static const struct command_registration jlink_command_handlers[] = { struct jtag_interface jlink_interface = { .name = "jlink", .commands = jlink_command_handlers, + .transports = jtag_only, .execute_queue = jlink_execute_queue, .speed = jlink_speed,