summaryrefslogtreecommitdiffstats
path: root/generic/tclThread.c
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)
commit2da34cb73820bcacd80766fc8970bbbb178405ba (patch)
tree3bebb54ad29feec21f15c975cef9c8cfb86a4bde /generic/tclThread.c
parentbd0d6160701f8f71f52641ffe1e371dd204b8b51 (diff)
parent9f8346d54f1ce71d31c76d3181ca37bb6708bf7a (diff)
downloadtcl-2da34cb73820bcacd80766fc8970bbbb178405ba.zip
tcl-2da34cb73820bcacd80766fc8970bbbb178405ba.tar.gz
tcl-2da34cb73820bcacd80766fc8970bbbb178405ba.tar.bz2
Eliminate (harmless) compiler warning. No functional change.
Diffstat (limited to 'generic/tclThread.c')
-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