]> git.sur5r.net Git - openocd/commitdiff
clang: fix warning by adding assert that shows that a variable is used
authorØyvind Harboe <oyvind.harboe@zylin.com>
Sat, 29 Oct 2011 08:55:02 +0000 (10:55 +0200)
committerØyvind Harboe <oyvindharboe@gmail.com>
Sat, 29 Oct 2011 13:13:45 +0000 (13:13 +0000)
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>
src/jtag/tcl.c

index 468edf5e511c169823b126660dcbe215bdc018b4..b634ac0db57211440248d3174a529f0e0fd02806 100644 (file)
@@ -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;