summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-03-20 10:03:42 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-03-20 10:03:42 (GMT)
commit97dfe82b36e19d08b902a2509b3797907d0268cb (patch)
tree41ce3e9cf38e5dc1447f1ca1fe043e4c2df3ba33
parentbe7334acb2cf6bc9263165270b9895ff1487c65e (diff)
downloadtcl-97dfe82b36e19d08b902a2509b3797907d0268cb.zip
tcl-97dfe82b36e19d08b902a2509b3797907d0268cb.tar.gz
tcl-97dfe82b36e19d08b902a2509b3797907d0268cb.tar.bz2
Stopped some GCC possibly-uninit-variable warnings.
-rw-r--r--generic/tclCompCmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index fdd339b..0596927 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.43 2003/03/19 16:51:42 dgp Exp $
+ * RCS: @(#) $Id: tclCompCmds.c,v 1.44 2003/03/20 10:03:42 dkf Exp $
*/
#include "tclInt.h"
@@ -2862,7 +2862,7 @@ TclCompileSwitchCmd(interp, parsePtr, envPtr)
int contFixIndex; /* Where the first of the jumps due to a
* group of continuation bodies starts,
* or -1 if there aren't any. */
- int contFixCount; /* Number of continuation bodies pointing
+ int contFixCount = 0; /* Number of continuation bodies pointing
* to the current (or next) real body. */
int codeOffset; /* Cache of current bytecode offset. */
int savedStackDepth = envPtr->currStackDepth;
@@ -3048,7 +3048,7 @@ TclCompileSwitchCmd(interp, parsePtr, envPtr)
foundDefault = 0;
for (i=0 ; i<argc ; i+=2) {
int code; /* Return codes from sub-compiles. */
- int nextArmFixupIndex;
+ int nextArmFixupIndex = -1;
/*
* Generate the test for the arm.