Fix a couple of clang warnings

This commit is contained in:
Gioacchino Mazzurco 2019-04-16 17:02:03 +02:00
parent c727190041
commit fcb2875312
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
2 changed files with 11 additions and 1 deletions

View File

@ -59,6 +59,10 @@ struct RsBroadcastDiscoveryResult : RsSerializable
RS_SERIAL_PROCESS(mProfileName);
RS_SERIAL_PROCESS(locator);
}
RsBroadcastDiscoveryResult() = default;
RsBroadcastDiscoveryResult (const RsBroadcastDiscoveryResult&) = default;
~RsBroadcastDiscoveryResult() override;
};
struct RsBroadcastDiscoveryPeerFoundEvent : RsEvent
@ -77,7 +81,7 @@ struct RsBroadcastDiscoveryPeerFoundEvent : RsEvent
RS_SERIAL_PROCESS(mData);
}
~RsBroadcastDiscoveryPeerFoundEvent();
~RsBroadcastDiscoveryPeerFoundEvent() override;
};
/**

View File

@ -37,6 +37,7 @@
/*extern*/ std::shared_ptr<RsBroadcastDiscovery> rsBroadcastDiscovery(nullptr);
RsBroadcastDiscovery::~RsBroadcastDiscovery() { /* Beware of Rs prefix! */ }
RsBroadcastDiscoveryResult::~RsBroadcastDiscoveryResult() {}
RsBroadcastDiscoveryPeerFoundEvent::~RsBroadcastDiscoveryPeerFoundEvent() {}
struct BroadcastDiscoveryPack : RsSerializable
@ -87,8 +88,13 @@ struct BroadcastDiscoveryPack : RsSerializable
serial_process(RsGenericSerializer::SERIALIZE, ctx);
return std::string(reinterpret_cast<char*>(buffer.data()), ctx.mOffset);
}
BroadcastDiscoveryPack(const BroadcastDiscoveryPack&) = default;
~BroadcastDiscoveryPack() override;
};
BroadcastDiscoveryPack::~BroadcastDiscoveryPack() {};
BroadcastDiscoveryService::BroadcastDiscoveryService(
RsPeers& pRsPeers ) :
mDiscoveredDataMutex("BroadcastDiscoveryService discovered data mutex"),