aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/tcl.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-10-29 10:55:02 +0200
committerØyvind Harboe <oyvindharboe@gmail.com>2011-10-29 13:13:45 +0000
commitfe2fd812fa6c20051781f842b9d8489cdb6b46cd (patch)
tree44666fa3d42fe69e8af8a1f3f58b25f4b210f0b3 /src/jtag/tcl.c
parentaf51c69fbcc15a0dee678553adf5a864f54f58cc (diff)
downloadriscv-openocd-fe2fd812fa6c20051781f842b9d8489cdb6b46cd.zip
riscv-openocd-fe2fd812fa6c20051781f842b9d8489cdb6b46cd.tar.gz
riscv-openocd-fe2fd812fa6c20051781f842b9d8489cdb6b46cd.tar.bz2
clang: fix warning by adding assert that shows that a variable is used
Change-Id: I26e0ba9f1ae9d43c9a14c42c4225746782dc4d66 Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com> Reviewed-on: http://openocd.zylin.com/134 Tested-by: jenkins Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Diffstat (limited to 'src/jtag/tcl.c')
-rw-r--r--src/jtag/tcl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index 468edf5..b634ac0 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;