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