summaryrefslogtreecommitdiffstats
path: root/generic/tclEvent.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2003-05-13 12:44:07 (GMT)
committerdkf <dkf@noemail.net>2003-05-13 12:44:07 (GMT)
commitd12af61d9a1ed02731bb5a51cb5291fe782f1d4a (patch)
treeed17d3ea0a9f63dcf9d8318707f3c663688cf09c /generic/tclEvent.c
parentaba3b001297d152faa058672cf7cef6c6b1e7d8e (diff)
downloadtcl-d12af61d9a1ed02731bb5a51cb5291fe782f1d4a.zip
tcl-d12af61d9a1ed02731bb5a51cb5291fe782f1d4a.tar.gz
tcl-d12af61d9a1ed02731bb5a51cb5291fe782f1d4a.tar.bz2
Removed unused variable to reduce compiler warnings. [Bug 664745]
FossilOrigin-Name: 7f0c38c377e8604e40a6ad1d656e59252e1601c7
Diffstat (limited to 'generic/tclEvent.c')
-rw-r--r--generic/tclEvent.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/generic/tclEvent.c b/generic/tclEvent.c
index 60b7d7f..305a1e4 100644
--- a/generic/tclEvent.c
+++ b/generic/tclEvent.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: tclEvent.c,v 1.28 2003/02/22 09:23:16 vasiljevic Exp $
+ * RCS: @(#) $Id: tclEvent.c,v 1.28.2.1 2003/05/13 12:44:07 dkf Exp $
*/
#include "tclInt.h"
@@ -763,13 +763,17 @@ void
Tcl_Finalize()
{
ExitHandler *exitPtr;
- ThreadSpecificData *tsdPtr;
TclpInitLock();
if (subsystemsInitialized != 0) {
subsystemsInitialized = 0;
- tsdPtr = TCL_TSD_INIT(&dataKey);
+ /*
+ * Ensure the thread-specific data is initialised as it is
+ * used in Tcl_FinalizeThread()
+ */
+
+ (void) TCL_TSD_INIT(&dataKey);
/*
* Invoke exit handlers first.