diff options
author | nijtmans <nijtmans> | 2008-11-27 23:26:05 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-11-27 23:26:05 (GMT) |
commit | f5fd423e9bc812dfa0e60cc9da7aaeb7d9b86284 (patch) | |
tree | 20d24307a579f0fe7d3afb9b67a418e01a00c083 /generic/tkMenu.c | |
parent | c44ff57c146d5dc3a790dc6c3e58f021f4d31531 (diff) | |
download | tk-f5fd423e9bc812dfa0e60cc9da7aaeb7d9b86284.zip tk-f5fd423e9bc812dfa0e60cc9da7aaeb7d9b86284.tar.gz tk-f5fd423e9bc812dfa0e60cc9da7aaeb7d9b86284.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.c | 6 |
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; } |