Date: Sat, 8 Apr 2023 20:49:13 +0100 From: Alexander Chernikov <melifaro@freebsd.org> To: garyj@gmx.de Cc: current@freebsd.org Subject: Re: /usr/src/sys/netlink/route/iface.c:738:1: warning: unused function Message-ID: <A0CA3ADF-3213-4ACC-90CA-97FDFC9F1F2F@freebsd.org> In-Reply-To: <20230408212108.7246eed3@ernst.home> References: <20230408212108.7246eed3@ernst.home>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 8 Apr 2023, at 20:21, Gary Jennejohn <garyj@gmx.de> wrote: >=20 > This isn't a fatal error, but it would be easy to fix: >=20 > /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. >=20 > 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. >=20 > I do not have INET6 in my kernel config file. >=20 > -- > Gary Jennejohn >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A0CA3ADF-3213-4ACC-90CA-97FDFC9F1F2F>