Skip to content

Commit 75b23a5

Browse files
alexander-shaposhnikovxnnpack-bot
authored andcommitted
Workaround for -Wincompatible-function-pointer-types warnings treated as errors.
PiperOrigin-RevId: 819415607
1 parent e8c7ec2 commit 75b23a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/threadpool-atomics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static inline void pthreadpool_cond_broadcast(pthreadpool_cond_t* cond) {
130130
static inline void pthreadpool_thread_create(
131131
pthreadpool_thread_t* thread, pthreadpool_thread_return_t(fun)(void*),
132132
void* arg) {
133-
thrd_create(thread, fun, arg);
133+
thrd_create(thread, (thrd_start_t)fun, arg);
134134
}
135135
static inline void pthreadpool_thread_join(
136136
pthreadpool_thread_t thread, pthreadpool_thread_return_t* return_value) {

0 commit comments

Comments
 (0)