summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-08 22:14:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-08 22:14:44 (GMT)
commitb839cc7b23cc44e72ee1a857ba26249b6b2370fb (patch)
tree57ada047e313cead9c8e3e9257629efb0f587d2d /generic/tclBasic.c
parentfbbea57c8db5cba0fe0ebe3d067ed136454343b5 (diff)
parentd76f731864215bbd4f01222a06ca7ff03af57c19 (diff)
downloadtcl-b839cc7b23cc44e72ee1a857ba26249b6b2370fb.zip
tcl-b839cc7b23cc44e72ee1a857ba26249b6b2370fb.tar.gz
tcl-b839cc7b23cc44e72ee1a857ba26249b6b2370fb.tar.bz2
Fix gcc warnings: variable set but not used
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 36ece2c..ea1be61 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -3664,6 +3664,7 @@ TclEvalObjvInternal(
}
}
+#ifdef USE_DTRACE
if (TCL_DTRACE_CMD_ARGS_ENABLED()) {
char *a[10];
int i = 0;
@@ -3682,6 +3683,7 @@ TclEvalObjvInternal(
TCL_DTRACE_CMD_INFO(a[0], a[1], a[2], a[3], i[0], i[1]);
TclDecrRefCount(info);
}
+#endif /* USE_DTRACE */
/*
* Finally, invoke the command's Tcl_ObjCmdProc.
@@ -3756,12 +3758,14 @@ TclEvalObjvInternal(
(void) Tcl_GetObjResult(interp);
}
+#ifdef USE_DTRACE
if (TCL_DTRACE_CMD_RESULT_ENABLED()) {
Tcl_Obj *r;
r = Tcl_GetObjResult(interp);
TCL_DTRACE_CMD_RESULT(TclGetString(objv[0]), code, TclGetString(r),r);
}
+#endif /* USE_DTRACE */
done:
if (savedVarFramePtr) {