@@ -383,8 +383,7 @@ static __inline int pthread_once (pthread_once_t *once, void (*oncefun)(void)) {
}
static __inline int pthread_key_create (pthread_key_t *key, void (*freefun)(void *)) {
- (void)freefun;
- DWORD res;
+ pthread_key_t res;
winPthreadAssertWindows((res = TlsAlloc()) != 0xFFFFFFFF);
*key = res;
return 0;