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