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