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