dht: fix warnings

This commit is contained in:
Adrien Béraud committed 2016-09-08 18:02:17 -04:00
1 parent ceab27d723
commit eabdddcfb3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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){