From fe2fd812fa6c20051781f842b9d8489cdb6b46cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Sat, 29 Oct 2011 10:55:02 +0200 Subject: [PATCH] clang: fix warning by adding assert that shows that a variable is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I26e0ba9f1ae9d43c9a14c42c4225746782dc4d66 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/134 Tested-by: jenkins Reviewed-by: Øyvind Harboe --- src/jtag/tcl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index 468edf5e..b634ac0d 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -166,6 +166,8 @@ static int Jim_Command_drscan(Jim_Interp *interp, int argc, Jim_Obj *const *args } } /* validate args */ + assert(e == JIM_OK); + tap = jtag_tap_by_jim_obj(interp, args[1]); if (tap == NULL) { return JIM_ERR; -- 2.39.5