From eabdddcfb38fb8ef67515d0798c54bbb0b156121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Thu, 8 Sep 2016 18:02:17 -0400 Subject: [PATCH] dht: fix warnings --- include/opendht/securedht.h | 2 +- src/dht.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/opendht/securedht.h b/include/opendht/securedht.h index 11b92fb9..325615cd 100644 --- a/include/opendht/securedht.h +++ b/include/opendht/securedht.h @@ -70,7 +70,7 @@ public: return secureType(std::move(tmp_type)); } - virtual void registerType(const ValueType& type) { + virtual void registerType(const ValueType& type) override { Dht::registerType(secureType(type)); } virtual void registerType(ValueType&& type) { diff --git a/src/dht.cpp b/src/dht.cpp index 3575af0b..720d7eab 100644 --- a/src/dht.cpp +++ b/src/dht.cpp @@ -1131,7 +1131,7 @@ void Dht::searchSendAnnounceValue(const std::shared_ptr<Search>& sr) { const auto& type = getType(a.value->type); if (sn->isSynced(now) and sn->getAnnounceTime(a.value->id, type) <= now) { auto hasValue {false}; - uint16_t seq_no; + uint16_t seq_no = 0; try { const auto& f = std::find_if(answer.fields.cbegin(), answer.fields.cend(), [&a](const std::shared_ptr<FieldValueIndex>& i){ -- GitLab