summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-08-21 11:21:41 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-08-21 11:21:41 (GMT)
commita01d9ef85f5007b1b16ebbcd84cdab572e1c4979 (patch)
tree3bebb54ad29feec21f15c975cef9c8cfb86a4bde /generic
parentc5a232b9f953492bfdbce26efb16fa279335a7e5 (diff)
parent811b14e555c23a063e1c1d0b17627a0484624234 (diff)
downloadtcl-a01d9ef85f5007b1b16ebbcd84cdab572e1c4979.zip
tcl-a01d9ef85f5007b1b16ebbcd84cdab572e1c4979.tar.gz
tcl-a01d9ef85f5007b1b16ebbcd84cdab572e1c4979.tar.bz2
Eliminate (harmless) compiler warning. No functional change.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclThread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c
index c2112b7..7882a48 100644
--- a/generic/tclThread.c
+++ b/generic/tclThread.c
@@ -304,7 +304,9 @@ void
TclMutexUnlockAndFinalize(
Tcl_Mutex *mutexPtr)
{
+#ifdef TCL_THREADS
Tcl_Mutex mutex;
+#endif
TclpMasterLock();
TclpMutexLock();
#ifdef TCL_THREADS