cc -O2 -pipe -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations time/timer_settime.c -o time/timer_settime -D_POSIX_C_SOURCE=202405L -lm -lpthread time/timer_settime.c:5:92: error: use of undeclared identifier 'timer_settime'; did you mean 'clock_settime'? int (*foo)(timer_t, int, const struct itimerspec *restrict, struct itimerspec *restrict) = timer_settime; ^~~~~~~~~~~~~ clock_settime /usr/include/time.h:151:5: note: 'clock_settime' declared here int clock_settime(clockid_t, const struct timespec *); ^ time/timer_settime.c:5:7: error: incompatible function pointer types initializing 'int (*)(timer_t, int, const struct itimerspec *restrict, struct itimerspec *restrict)' (aka 'int (*)(int, int, const struct itimerspec *restrict, struct itimerspec *restrict)') with an expression of type 'int (clockid_t, const struct timespec *)' (aka 'int (int, const struct timespec *)') [-Werror,-Wincompatible-function-pointer-types] int (*foo)(timer_t, int, const struct itimerspec *restrict, struct itimerspec *restrict) = timer_settime; ^ ~~~~~~~~~~~~~ 2 errors generated.