From: Øyvind Harboe Date: Sat, 29 Oct 2011 08:55:02 +0000 (+0200) Subject: clang: fix warning by adding assert that shows that a variable is used X-Git-Tag: v0.6.0-rc1~491 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fe2fd812fa6c20051781f842b9d8489cdb6b46cd;p=openocd clang: fix warning by adding assert that shows that a variable is used Change-Id: I26e0ba9f1ae9d43c9a14c42c4225746782dc4d66 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/134 Tested-by: jenkins Reviewed-by: Øyvind Harboe --- 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;