summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-11-27 23:26:05 (GMT)
committernijtmans <nijtmans>2008-11-27 23:26:05 (GMT)
commit713876e1f5bca010fe3fa12da61c8fdf67cd5665 (patch)
tree20d24307a579f0fe7d3afb9b67a418e01a00c083 /generic/tkMenu.c
parenta3f4e672b7776ad620f5bc519ed88a5366d0a927 (diff)
downloadtk-713876e1f5bca010fe3fa12da61c8fdf67cd5665.zip
tk-713876e1f5bca010fe3fa12da61c8fdf67cd5665.tar.gz
tk-713876e1f5bca010fe3fa12da61c8fdf67cd5665.tar.bz2
elminate warning: unused variable 'tkwin'
Replace Tcl_SetResult(interp, NULL, ....) calls with Tcl_ResetResult(interp) everywhere
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r--generic/tkMenu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index 646f07e..93726c8 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMenu.c,v 1.47 2008/11/08 22:52:29 dkf Exp $
+ * RCS: @(#) $Id: tkMenu.c,v 1.48 2008/11/27 23:26:05 nijtmans Exp $
*/
/*
@@ -2154,7 +2154,7 @@ TkGetMenuIndex(
*indexPtr = i;
goto success;
}
- Tcl_SetResult(interp, NULL, TCL_STATIC);
+ Tcl_ResetResult(interp);
}
for (i = 0; i < menuPtr->numEntries; i++) {
@@ -2956,7 +2956,7 @@ GetIndexFromCoords(
return TCL_OK;
error:
- Tcl_SetResult(interp, NULL, TCL_STATIC);
+ Tcl_ResetResult(interp);
return TCL_ERROR;
}