summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-25 12:58:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-25 12:58:20 (GMT)
commitff878198efcc37e57031dcf223c086e00471f852 (patch)
tree2f8828416d8432593252efda2b82a1dca54b7c79 /generic/tclResult.c
parent84707cf7026c7f710ca6ffd4d7a1e7bde4f9ca51 (diff)
parent6ec16f5f96257f9a6ac5d507f8f19258c7ceaa28 (diff)
downloadtcl-ff878198efcc37e57031dcf223c086e00471f852.zip
tcl-ff878198efcc37e57031dcf223c086e00471f852.tar.gz
tcl-ff878198efcc37e57031dcf223c086e00471f852.tar.bz2
merge trunk
Add -Wwrite-strings to compiler options, so we can guarantee correct "const" usage.
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r--generic/tclResult.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index 1a73288..19bea0f 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -1278,7 +1278,7 @@ Tcl_GetReturnOptions(
}
if (result == TCL_ERROR) {
- Tcl_AddObjErrorInfo(interp, "", -1);
+ Tcl_AddErrorInfo(interp, "");
Tcl_DictObjPut(NULL, options, keys[KEY_ERRORSTACK], iPtr->errorStack);
}
if (iPtr->errorCode) {