summaryrefslogtreecommitdiffstats
path: root/generic/tclThread.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-08-23 14:54:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-08-23 14:54:45 (GMT)
commit237c1409508ccddabf7671db08ce9b15bbcabaf1 (patch)
treeb9ba8ee911afaa2995ea8c08901b6686d59d1c8a /generic/tclThread.c
parent65dc531cf93c773f5d73b4db3cb9dce44d5386df (diff)
parenta5048e8dd92669687e9e6a3e5e040477366a5b69 (diff)
downloadtcl-237c1409508ccddabf7671db08ce9b15bbcabaf1.zip
tcl-237c1409508ccddabf7671db08ce9b15bbcabaf1.tar.gz
tcl-237c1409508ccddabf7671db08ce9b15bbcabaf1.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclThread.c')
-rw-r--r--generic/tclThread.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c
index 22845dd..70a2b05 100644
--- a/generic/tclThread.c
+++ b/generic/tclThread.c
@@ -80,7 +80,7 @@ Tcl_GetThreadData(
if (*keyPtr == NULL) {
result = Tcl_Alloc(size);
memset(result, 0, size);
- *keyPtr = result;
+ *keyPtr = (Tcl_ThreadDataKey)result;
RememberSyncObject(keyPtr, &keyRecord);
} else {
result = *keyPtr;
@@ -488,30 +488,30 @@ Tcl_ExitThread(
#undef Tcl_ConditionWait
void
Tcl_ConditionWait(
- Tcl_Condition *condPtr, /* Really (pthread_cond_t **) */
- Tcl_Mutex *mutexPtr, /* Really (pthread_mutex_t **) */
- const Tcl_Time *timePtr) /* Timeout on waiting period */
+ TCL_UNUSED(Tcl_Condition *), /* Really (pthread_cond_t **) */
+ TCL_UNUSED(Tcl_Mutex *), /* Really (pthread_mutex_t **) */
+ TCL_UNUSED(const Tcl_Time *)) /* Timeout on waiting period */
{
}
#undef Tcl_ConditionNotify
void
Tcl_ConditionNotify(
- Tcl_Condition *condPtr)
+ TCL_UNUSED(Tcl_Condition *))
{
}
#undef Tcl_MutexLock
void
Tcl_MutexLock(
- Tcl_Mutex *mutexPtr)
+ TCL_UNUSED(Tcl_Mutex *))
{
}
#undef Tcl_MutexUnlock
void
Tcl_MutexUnlock(
- Tcl_Mutex *mutexPtr)
+ TCL_UNUSED(Tcl_Mutex *))
{
}
#endif /* !TCL_THREADS */