diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-08-23 13:00:47 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-08-23 13:00:47 (GMT) |
| commit | a5048e8dd92669687e9e6a3e5e040477366a5b69 (patch) | |
| tree | 14fc254a3b62a1b608d07608c6b3aab3fe073d5a /generic/tclThread.c | |
| parent | 94b338844e5af1659858a5446714c65fcbaecf54 (diff) | |
| parent | a5448b6c8bdb4aeac833b411b94637047889cbd8 (diff) | |
| download | tcl-a5048e8dd92669687e9e6a3e5e040477366a5b69.zip tcl-a5048e8dd92669687e9e6a3e5e040477366a5b69.tar.gz tcl-a5048e8dd92669687e9e6a3e5e040477366a5b69.tar.bz2 | |
Make everything compile warning-free when TCL_THREADS=0
Diffstat (limited to 'generic/tclThread.c')
| -rw-r--r-- | generic/tclThread.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c index 0e6e874..de9fac9 100644 --- a/generic/tclThread.c +++ b/generic/tclThread.c @@ -80,7 +80,7 @@ Tcl_GetThreadData( if (*keyPtr == NULL) { result = ckalloc(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 */ |
