Re: /usr/src/sys/netlink/route/iface.c:738:1: warning: unused function
- In reply to: Gary Jennejohn : "/usr/src/sys/netlink/route/iface.c:738:1: warning: unused function"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Apr 2023 19:49:13 UTC
> On 8 Apr 2023, at 20:21, Gary Jennejohn <garyj@gmx.de> wrote: > > This isn't a fatal error, but it would be easy to fix: > > /usr/src/sys/netlink/route/iface.c:738:1: warning: unused function 'inet6_get_plen' [-Wunused-function] > inet6_get_plen(const struct in6_addr *addr) > ^ > 1 warning generated. > > This function is called in get_sa_plen(const struct sockaddr *sa) and the > call is done inside #ifdef INET6...#endif, whereas the implementation is > NOT inside #ifdef INET6...#endif, as it should be. Thanks for the report, should be fixed by 39c0036d881b. > > I do not have INET6 in my kernel config file. > > -- > Gary Jennejohn >