From ac7b437cdbbdc59ae6c0ccce2dea53727e5f0e4b Mon Sep 17 00:00:00 2001 From: Junxiao Shi Date: Sat, 13 Dec 2014 21:47:04 -0700 Subject: [PATCH] table/face: fix unused variable warnings in NameTree and NDNLP Slicer refs #2290, #2287 Change-Id: I40f80f4c8a9fe830edafeada2bbd0b881194d0a3 --- daemon/face/ndnlp-slicer.cpp | 2 +- daemon/table/name-tree.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/face/ndnlp-slicer.cpp b/daemon/face/ndnlp-slicer.cpp index 9efe7d67..6b5b8189 100644 --- a/daemon/face/ndnlp-slicer.cpp +++ b/daemon/face/ndnlp-slicer.cpp @@ -118,7 +118,7 @@ Slicer::slice(const Block& block) size_t pktSize = Slicer_encodeFragment(buffer, seqBlock[fragIndex], fragIndex, fragCount, payload, payloadSize); - BOOST_ASSERT(pktSize <= m_mtu); + BOOST_VERIFY(pktSize <= m_mtu); pa->push_back(buffer.block()); } diff --git a/daemon/table/name-tree.cpp b/daemon/table/name-tree.cpp index 61a5364e..d7cb5449 100644 --- a/daemon/table/name-tree.cpp +++ b/daemon/table/name-tree.cpp @@ -339,7 +339,7 @@ NameTree::eraseEntryIfEmpty(shared_ptr entry) } } - BOOST_ASSERT(isFound == true); + BOOST_VERIFY(isFound == true); } // remove this Entry and its Name Tree Node @@ -625,7 +625,7 @@ NameTree::const_iterator::operator++() node = node->m_next; } } - BOOST_ASSERT(isFound == false); + BOOST_VERIFY(isFound == false); // Reach to the end() m_entry = m_nameTree.m_end; return *this; @@ -702,7 +702,7 @@ NameTree::const_iterator::operator++() } } - BOOST_ASSERT(isFound == true); + BOOST_VERIFY(isFound == true); if (i < parentChildrenList.size() - 1) // m_entry not the last child { m_entry = parentChildrenList[i + 1];