mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
dht: fix warnings
This commit is contained in:
1 parent
ceab27d723
commit
eabdddcfb3
2 files changed
+2
-2
No files matched your search
@@ -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
@@ -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){
|
||||
|
||||
Reference in new issue
Block a user