cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations sched/sched_setscheduler.c -o sched/sched_setscheduler -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 sched/sched_setscheduler.c:6:37: error: 'struct sched_param' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 6 | int (*foo)(pid_t, int, const struct sched_param *) = sched_setscheduler; | ^~~~~~~~~~~ sched/sched_setscheduler.c:6:54: error: 'sched_setscheduler' undeclared here (not in a function) 6 | int (*foo)(pid_t, int, const struct sched_param *) = sched_setscheduler; | ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors