From 75b23a57b4e5ad206e8f69b698b5f1df04cf3d32 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Tue, 14 Oct 2025 15:05:53 -0700 Subject: [PATCH] Workaround for -Wincompatible-function-pointer-types warnings treated as errors. PiperOrigin-RevId: 819415607 --- src/threadpool-atomics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threadpool-atomics.h b/src/threadpool-atomics.h index a90b6ff..f393a72 100644 --- a/src/threadpool-atomics.h +++ b/src/threadpool-atomics.h @@ -130,7 +130,7 @@ static inline void pthreadpool_cond_broadcast(pthreadpool_cond_t* cond) { static inline void pthreadpool_thread_create( pthreadpool_thread_t* thread, pthreadpool_thread_return_t(fun)(void*), void* arg) { - thrd_create(thread, fun, arg); + thrd_create(thread, (thrd_start_t)fun, arg); } static inline void pthreadpool_thread_join( pthreadpool_thread_t thread, pthreadpool_thread_return_t* return_value) {