From 7bc2d8dd9e518114299f600782715f52bb30b5a5 Mon Sep 17 00:00:00 2001 From: Kevin B Kenny Date: Sat, 1 Feb 2003 23:49:19 +0000 Subject: * generic/tclCompCmds.c: Removed an unused variable that caused compiler warnings on SGI. [Bug 664379] --- ChangeLog | 5 +++++ generic/tclCompCmds.c | 15 ++------------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 78c17f0..da872c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2003-02-01 Kevin Kenny + * generic/tclCompCmds.c: Removed an unused variable that caused + compiler warnings on SGI. [Bug 664379] + +2003-02-01 Kevin Kenny + * generic/tclLoad.c: Changed the code so that if Tcl_StaticPackage is called to report the same package as being loaded in two interps, it shows up in [info loaded {}] in both of them (previously, diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c index 030ca7e..f2df134 100644 --- a/generic/tclCompCmds.c +++ b/generic/tclCompCmds.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCompCmds.c,v 1.37 2003/01/09 21:13:26 dgp Exp $ + * RCS: @(#) $Id: tclCompCmds.c,v 1.38 2003/02/01 23:49:20 kennykb Exp $ */ #include "tclInt.h" @@ -1649,7 +1649,7 @@ TclCompileLappendCmd(interp, parsePtr, envPtr) CompileEnv *envPtr; /* Holds resulting instructions. */ { Tcl_Token *varTokenPtr, *valueTokenPtr; - int numValues, simpleVarName, isScalar, localIndex, numWords; + int simpleVarName, isScalar, localIndex, numWords; int code = TCL_OK; /* @@ -1672,7 +1672,6 @@ TclCompileLappendCmd(interp, parsePtr, envPtr) */ return TCL_OUT_LINE_COMPILE; } - numValues = (numWords - 2); /* * Decide if we can use a frame slot for the var/array name or if we @@ -1708,16 +1707,6 @@ TclCompileLappendCmd(interp, parsePtr, envPtr) goto done; } } -#if 0 - } else { - /* - * We need to carefully handle the two arg case, as lappend - * always creates the variable. - */ - - TclEmitPush(TclRegisterNewLiteral(envPtr, "", 0), envPtr); - numValues = 1; -#endif } /* -- cgit v0.12