cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations net_if/if_indextoname.c -o net_if/if_indextoname -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 net_if/if_indextoname.c:5:34: error: initialization of 'char * (*)(unsigned int, char *)' from incompatible pointer type 'const char * (*)(unsigned int, char *)' [-Werror=incompatible-pointer-types] 5 | char *(*foo)(unsigned, char *) = if_indextoname; | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors