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>
index | next in thread | previous in thread | raw e-mail
> 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 >help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A0CA3ADF-3213-4ACC-90CA-97FDFC9F1F2F>
