cc -O2 -pipe -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations pthread/pthread_setschedprio.c -o pthread/pthread_setschedprio -D_POSIX_C_SOURCE=202405L -lm -lpthread pthread/pthread_setschedprio.c:6:30: error: use of undeclared identifier 'pthread_setschedprio'; did you mean 'pthread_setschedparam'? int (*foo)(pthread_t, int) = pthread_setschedprio; ^~~~~~~~~~~~~~~~~~~~ pthread_setschedparam /usr/include/pthread.h:292:6: note: 'pthread_setschedparam' declared here int pthread_setschedparam(pthread_t, int, ^ pthread/pthread_setschedprio.c:6:7: error: incompatible function pointer types initializing 'int (*)(pthread_t, int)' (aka 'int (*)(struct pthread *, int)') with an expression of type 'int (pthread_t, int, const struct sched_param *)' (aka 'int (struct pthread *, int, const struct sched_param *)') [-Werror,-Wincompatible-function-pointer-types] int (*foo)(pthread_t, int) = pthread_setschedprio; ^ ~~~~~~~~~~~~~~~~~~~~ 2 errors generated.