netinet: Use __diagused for variables only used in KASSERT().
This commit is contained in:
parent
2174f0f2f2
commit
732b6d4d50
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user