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