You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../../src/threadqueue.c: In function 'kvz_threadqueue_init':
../../src/threadqueue.c:416:50: error: passing argument 2 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
416 | if (pthread_create(&threadqueue->threads[i], &attr, threadqueue_worker, threadqueue) != 0) {
| ^~~~~
| |
| pthread_attr_t **
In file included from ../../src/threadqueue.h:43,
from ../../src/threadqueue.c:34:
G:/MABS/msys64/mingw32/include/pthread.h:320:78: note: expected 'const pthread_attr_t *' but argument is of type 'pthread_attr_t **'
320 | WINPTHREAD_API int pthread_create(pthread_t *th, const pthread_attr_t *attr, void *(* func)(void *), void *arg);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
GCC 14.1 takes the const more serious than 13, I guess.
But you are already planning to prefer a Windows native API over pthread instead: #403
The text was updated successfully, but these errors were encountered:
GCC 14.1 takes the
const
more serious than 13, I guess.But you are already planning to prefer a Windows native API over pthread instead: #403
The text was updated successfully, but these errors were encountered: