cc -O2 -pipe -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations pthread/pthread_mutex_getprioceiling.c -o pthread/pthread_mutex_getprioceiling -D_POSIX_C_SOURCE=202405L -lm -lpthread pthread/pthread_mutex_getprioceiling.c:6:7: error: incompatible function pointer types initializing 'int (*)(const pthread_mutex_t *restrict, int *restrict)' (aka 'int (*)(volatile struct pthread_mutex *const *restrict, int *restrict)') with an expression of type 'int (pthread_mutex_t *, int *)' (aka 'int (volatile struct pthread_mutex **, int *)') [-Werror,-Wincompatible-function-pointer-types] int (*foo)(const pthread_mutex_t *restrict, int *restrict) = pthread_mutex_getprioceiling; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.