DragonFly bugs List (threaded) for 2011-10
[
Date Prev][
Date Next]
[Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
[issue2172] Non-INVARIANT kernel and unused variable error
New submission from Joel K. Pettersson <joelkpettersson@gmail.com>:
As of now, kernel build without INVARIANTS fails - this fixes it:
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 36d7ab2..c4c0973 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -732,7 +732,7 @@ tcp_usr_send(netmsg_t msg)
struct socket *so = msg->send.base.nm_so;
int flags = msg->send.nm_flags;
struct mbuf *m = msg->send.nm_m;
- struct mbuf *control = msg->send.nm_control;
+ struct mbuf *control __debugvar = msg->send.nm_control;
int error = 0;
struct inpcb *inp;
struct tcpcb *tp;
----------
messages: 10253
nosy: joelkp
status: unread
title: Non-INVARIANT kernel and unused variable error
_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2172>
_____________________________________________________
[
Date Prev][
Date Next]
[Thread Prev][
Thread Next]
[
Date Index][
Thread Index]