Thread: silence compiler warnings

This commit is contained in:
李通洲
2022-11-17 00:13:25 +08:00
parent 3f008c4b6d
commit 0bbecb3b33
+1 -1
View File
@@ -29,7 +29,7 @@
static inline void ffThreadMutexLock(FFThreadMutex* mutex) { pthread_mutex_lock(mutex); }
static inline void ffThreadMutexUnlock(FFThreadMutex* mutex) { pthread_mutex_unlock(mutex); }
static inline FFThreadType ffThreadCreate(void* (* func)(void*), void* data) {
FFThreadType newThread = NULL;
FFThreadType newThread = 0;
pthread_create(&newThread, NULL, func, data);
return newThread;
}