build: Update compiler flags and addressing discovered warnings
Change-Id: I95e89871e1bcd15ee8e8b3fc181861e40a6b127b
diff --git a/src/storage/index.cpp b/src/storage/index.cpp
index 2bf17ac..572dc97 100644
--- a/src/storage/index.cpp
+++ b/src/storage/index.cpp
@@ -56,7 +56,7 @@
return true;
}
-Index::Index(const size_t nMaxPackets)
+Index::Index(size_t nMaxPackets)
: m_maxPackets(nMaxPackets)
, m_size(0)
{
@@ -64,7 +64,7 @@
bool
-Index::insert(const Data& data, const int64_t id)
+Index::insert(const Data& data, int64_t id)
{
if (isFull())
throw Error("The Index is Full. Cannot Insert Any Data!");
@@ -76,7 +76,7 @@
}
bool
-Index::insert(const Name& fullName, const int64_t id,
+Index::insert(const Name& fullName, int64_t id,
const ndn::ConstBufferPtr& keyLocatorHash)
{
if (isFull())
@@ -225,7 +225,7 @@
return std::make_pair(0, Name());
}
-Index::Entry::Entry(const Data& data, const int64_t id)
+Index::Entry::Entry(const Data& data, int64_t id)
: m_name(data.getFullName())
, m_id(id)
{
@@ -234,7 +234,7 @@
m_keyLocatorHash = computeKeyLocatorHash(signature.getKeyLocator());
}
-Index::Entry::Entry(const Name& fullName, const KeyLocator& keyLocator, const int64_t id)
+Index::Entry::Entry(const Name& fullName, const KeyLocator& keyLocator, int64_t id)
: m_name(fullName)
, m_keyLocatorHash(computeKeyLocatorHash(keyLocator))
, m_id(id)
@@ -242,7 +242,7 @@
}
Index::Entry::Entry(const Name& fullName,
- const ndn::ConstBufferPtr& keyLocatorHash, const int64_t id)
+ const ndn::ConstBufferPtr& keyLocatorHash, int64_t id)
: m_name(fullName)
, m_keyLocatorHash(keyLocatorHash)
, m_id(id)