From 6184e1e1f212b1517022a8b023a686033f4faad8 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Sat, 23 Jul 2005 01:31:59 +0000 Subject: * generic/tclExecute.c (INST_DICT_*): stop 2 compiler warnings for uninitialised variables. --- ChangeLog | 5 +++++ generic/tclExecute.c | 5 +++-- 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 + + * generic/tclExecute.c (INST_DICT_*): stop 2 compiler + warnings for uninitialised variables. + 2005-07-23 Donal K. Fellows * 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!"); } -- cgit v0.12