cc -pipe -O -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations sys_resource/getpriority.c -o sys_resource/getpriority -D_POSIX_C_SOURCE=202405L -lm -lpthread -lrt -lrt -lcrypt sys_resource/getpriority.c:11:25: error: initialization of 'int (*)(int, id_t)' {aka 'int (*)(int, long int)'} from incompatible pointer type 'int (*)(int, int)' [-Werror=incompatible-pointer-types] int (*foo)(int, id_t) = getpriority; ^~~~~~~~~~~ cc1: all warnings being treated as errors