We have header files with static const char *[] which gets included
but the static definitions are not used leading to errors.
/workspace/src/sys/net/if_strings.h:69:20: error: 'ifcap_bit_names' defined but not used [-Werror=unused-variable]
69 | static const char *ifcap_bit_names[] = {
/workspace/src/sys/net/sff8472.h:418:20: error: 'sff_8024_id' defined but not used [-Werror=unused-variable]
418 | static const char *sff_8024_id[SFF_8024_ID_LAST + 1] = {
These are triggered by src/tools/build/test-includes
as at least the 2nd one would otherwise be fine.
For if_strings.h we do have an #include which does not use the variable
(sys/net/if.c).
Sponsored by: The FreeBSD Foundation
Reported by: CI for gcc12/13/14