Open viking opened 2 years ago
same here. gcc version 11.2.1 20211203 (Red Hat 11.2.1-7) (GCC)
https://stackoverflow.com/questions/50198319/gcc-8-wstringop-truncation-what-is-the-good-practice
modify src/core.c
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-truncation"
strncpy(data->addr_name, name, sizeof(data->addr_name));
#pragma GCC diagnostic pop
same for strncpy(space->addr_name, node, sizeof(space->addr_name));
After running ./configure and make, here's what happened:
Here's my gcc version: