The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=bd758ebac3272f720c051570e043e4bc653dcd48
commit bd758ebac3272f720c051570e043e4bc653dcd48 Author: Enji Cooper <[email protected]> AuthorDate: 2026-02-26 23:06:36 +0000 Commit: Enji Cooper <[email protected]> CommitDate: 2026-02-27 04:50:05 +0000 divert: unbreak the LINT-NOIP build Only expose `dcb` when either `INET` or `INET6` is defined. Reported by: clang (`-Wunused`) MFC after: 1 week Fixes 5547a7bb39 ("divert: Use a better source identifier...") Differential Revision: https://reviews.freebsd.org/D55548 --- sys/netinet/ip_divert.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 2b85bd4a50bb..39bc9de6ec9f 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -502,10 +502,11 @@ static int div_output_inbound(int family, struct socket *so, struct mbuf *m, struct sockaddr_in *sin) { - struct divcb *dcb; +#if defined(INET) || defined(INET6) + struct divcb *dcb = so->so_pcb; +#endif struct ifaddr *ifa; - dcb = so->so_pcb; if (m->m_pkthdr.rcvif == NULL) { /* * No luck with the name, check by IP address.
