cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations arpa_inet/inet_ntoa.c -o arpa_inet/inet_ntoa -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 arpa_inet/inet_ntoa.c:6:21: warning: 'inet_ntoa' is deprecated [-Wdeprecated-declarations] 6 | char *(*foo)(struct in_addr) = inet_ntoa; | ^~~~~~~ In file included from arpa_inet/inet_ntoa.c:2: /usr/include/arpa/inet.h:69:26: note: declared here 69 | __deprecated const char *inet_ntoa(struct in_addr in); | ^~~~~~~~~ arpa_inet/inet_ntoa.c:6:32: error: initialization of 'char * (*)(struct in_addr)' from incompatible pointer type 'const char * (*)(struct in_addr)' [-Werror=incompatible-pointer-types] 6 | char *(*foo)(struct in_addr) = inet_ntoa; | ^~~~~~~~~ cc1: all warnings being treated as errors