diff options
author | Kevin B Kenny <kennykb@acm.org> | 2003-02-01 23:49:19 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2003-02-01 23:49:19 (GMT) |
commit | 7bc2d8dd9e518114299f600782715f52bb30b5a5 (patch) | |
tree | 33e62c91e55e0fd6d89a03bc8f1c853ecc90233b /generic/tclCompCmds.c | |
parent | 82148735c813322bfb1f0fc68327f4dca5c445d2 (diff) | |
download | tcl-7bc2d8dd9e518114299f600782715f52bb30b5a5.zip tcl-7bc2d8dd9e518114299f600782715f52bb30b5a5.tar.gz tcl-7bc2d8dd9e518114299f600782715f52bb30b5a5.tar.bz2 |
* generic/tclCompCmds.c: Removed an unused variable that caused
compiler warnings on SGI. [Bug 664379]
Diffstat (limited to 'generic/tclCompCmds.c')
-rw-r--r-- | generic/tclCompCmds.c | 15 |
1 files changed, 2 insertions, 13 deletions
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 } /* |