tools: fix two warnings produced by gcc-4.8.
Change-Id: Ia27dd0b84b4a0e429f005ba4c0a5a5479dfc6769
diff --git a/tools/ndn-tlv-peek.cpp b/tools/ndn-tlv-peek.cpp
index cb7adfd..f84116d 100644
--- a/tools/ndn-tlv-peek.cpp
+++ b/tools/ndn-tlv-peek.cpp
@@ -134,17 +134,16 @@
void
onData(const ndn::Interest& interest, ndn::Data& data)
{
- int returnValue;
m_isDataReceived = true;
if (m_isPayloadOnlySet)
{
ndn::Block block = data.getContent();
- returnValue = write(1, block.value(), block.value_size());
+ write(1, block.value(), block.value_size());
}
else
{
ndn::Block block = data.wireEncode();
- returnValue = write(1, block.wire(), block.size());
+ write(1, block.wire(), block.size());
}
}