cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations pthread/pthread_attr_getschedparam.c -o pthread/pthread_attr_getschedparam -D_POSIX_C_SOURCE=202405L -lm -lpthread -lrt relibc getrlimit(3, 0x7ffffffffc80): not implemented relibc getrlimit(3, 0x7ffffffffbb0): not implemented relibc getrlimit(9, 0x7ffffffffb70): not implemented relibc getrlimit(9, 0x7ffffffffba0): not implemented relibc getrlimit(5, 0x7ffffffffba0): not implemented relibc getrlimit(9, 0x7ffffffffb70): not implemented pthread/pthread_attr_getschedparam.c:5:51: error: 'struct sched_param' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 5 | int (*foo)(const pthread_attr_t *restrict, struct sched_param *restrict) = pthread_attr_getschedparam; | ^~~~~~~~~~~ pthread/pthread_attr_getschedparam.c:5:76: error: initialization of 'int (*)(const pthread_attr_t * restrict, struct sched_param * restrict)' from incompatible pointer type 'int (*)(const pthread_attr_t *, struct sched_param *)' [-Werror=incompatible-pointer-types] 5 | int (*foo)(const pthread_attr_t *restrict, struct sched_param *restrict) = pthread_attr_getschedparam; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors