summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclExecute.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d9457ae..8b851d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-23 Miguel Sofer <msofer@users.sf.net>
+
+ * generic/tclExecute.c (INST_DICT_*): stop 2 compiler
+ warnings for uninitialised variables.
+
2005-07-23 Donal K. Fellows <dkf@users.sf.net>
* generic/tclExecute.c (TEBC:INST_DICT_INCR_IMM): Fix the
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index aff2bc3..ff165cf 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.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: tclExecute.c,v 1.197 2005/07/22 23:56:34 dkf Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.198 2005/07/23 01:32:04 msofer Exp $
*/
#include "tclInt.h"
@@ -4888,7 +4888,7 @@ TclExecuteByteCode(interp, codePtr)
Tcl_DictObjPut(NULL, dictPtr, *tosPtr,
Tcl_NewLongObj(value + opnd));
} else {
- long value;
+ long value = 0; /* stop compiler warning */
Tcl_WideInt wvalue;
REQUIRE_WIDE_OR_INT(result, valPtr, value, wvalue);
@@ -4910,6 +4910,7 @@ TclExecuteByteCode(interp, codePtr)
tosPtr - (opnd-1));
break;
default:
+ cleanup = 0; /* stop compiler warning */
Tcl_Panic("Should not happen!");
}