Skip to content

Commit

Permalink
Fix function signature for pthread_create()
Browse files Browse the repository at this point in the history
gcc-14 is very picky
  • Loading branch information
IOhannes m zmölnig authored and IOhannes m zmölnig committed Aug 4, 2024
1 parent 751939d commit 34a3112
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion flite.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,12 @@ static void flite_thread(t_flite *x) {
#endif
return;
}
static void*flite_do_thread(void *z)
{
t_flite *x = (t_flite*)z;
flite_thread(x);
return 0;
}

/*--------------------------------------------------------------------
* constructor
Expand Down Expand Up @@ -693,7 +699,7 @@ static void *flite_new(t_symbol *ary)
x->x_requestcode = IDLE;
pthread_mutex_init(&x->x_mutex, 0);
pthread_cond_init(&x->x_requestcondition, 0);
pthread_create(&x->x_tid, 0, flite_thread, x);
pthread_create(&x->x_tid, 0, flite_do_thread, x);

return (void *)x;
}
Expand Down

0 comments on commit 34a3112

Please sign in to comment.