netinet: Use __diagused for variables only used in KASSERT().

This commit is contained in:
John Baldwin 2022-04-13 16:08:19 -07:00
parent 2174f0f2f2
commit 732b6d4d50
2 changed files with 2 additions and 2 deletions

View File

@ -1495,7 +1495,7 @@ static void
tcp_log_purge_tp_logbuf(struct tcpcb *tp)
{
struct tcp_log_mem *log_entry;
struct inpcb *inp;
struct inpcb *inp __diagused;
inp = tp->t_inpcb;
INP_WLOCK_ASSERT(inp);

View File

@ -1956,7 +1956,7 @@ tcp_m_copym(struct mbuf *m, int32_t off0, int32_t *plen,
{
#ifdef KERN_TLS
struct ktls_session *tls, *ntls;
struct mbuf *start;
struct mbuf *start __diagused;
#endif
struct mbuf *n, **np;
struct mbuf *top;