summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2017-02-03 01:04:22 +0000
committermarkj <markj@FreeBSD.org>2017-02-03 01:04:22 +0000
commit5d1dd11dfe89394fbf0aa9074a7e209f04a4e666 (patch)
treeca2170009d3fbdd5bfbe40e7e99a0cb49ac70be0
parent0f4a2a370df2931f2522aa4b0fe8bab484e1e9d9 (diff)
downloadFreeBSD-src-5d1dd11dfe89394fbf0aa9074a7e209f04a4e666.zip
FreeBSD-src-5d1dd11dfe89394fbf0aa9074a7e209f04a4e666.tar.gz
MFC r312209:
Suppress a warning about m_assertbuf being unused.
-rw-r--r--sys/kern/uipc_mbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 8c5ee78..5f103eb 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -169,7 +169,7 @@ CTASSERT(sizeof(struct m_ext) == 28);
* plain pointer does.
*/
#ifdef INVARIANTS
-static struct mbuf m_assertbuf;
+static struct mbuf __used m_assertbuf;
CTASSERT(sizeof(m_assertbuf.m_slist) == sizeof(m_assertbuf.m_next));
CTASSERT(sizeof(m_assertbuf.m_stailq) == sizeof(m_assertbuf.m_next));
CTASSERT(sizeof(m_assertbuf.m_slistpkt) == sizeof(m_assertbuf.m_nextpkt));
OpenPOWER on IntegriCloud