actually silence Clang unused warns

[skip ci]
This commit is contained in:
Kae 2024-12-31 19:41:40 +11:00
parent cb893f0f52
commit 5247c48551
2 changed files with 7 additions and 6 deletions

View File

@ -165,7 +165,8 @@ bool NetElementFloating<T>::writeNetDelta(DataStream& ds, uint64_t fromVersion,
}
template <typename T>
void NetElementFloating<T>::readNetDelta(DataStream& ds, float interpolationTime, NetCompatibilityRules _rules) {
void NetElementFloating<T>::readNetDelta(DataStream& ds, float interpolationTime, NetCompatibilityRules rules) {
_unused(rules)
T t = readValue(ds);
m_latestUpdateVersion = m_netVersion ? m_netVersion->current() : 0;

View File

@ -85,11 +85,11 @@ EnumMap<NetCompressionMode> const NetCompressionModeNames {
Packet::~Packet() {}
void Packet::read(DataStream& ds, NetCompatibilityRules _netRules) { read(ds); }
void Packet::read(DataStream& _ds) {}
void Packet::write(DataStream& ds, NetCompatibilityRules _netRules) const { write(ds); }
void Packet::write(DataStream& _ds) const {}
void Packet::readJson(Json const& _json) {}
void Packet::read(DataStream& ds, NetCompatibilityRules netRules) { read(ds); _unused(netRules); }
void Packet::read(DataStream& ds) { _unused(ds); }
void Packet::write(DataStream& ds, NetCompatibilityRules netRules) const { write(ds); _unused(netRules); }
void Packet::write(DataStream& ds) const { _unused(ds); }
void Packet::readJson(Json const& json) { _unused(json); }
Json Packet::writeJson() const { return JsonObject{}; }
PacketCompressionMode Packet::compressionMode() const { return m_compressionMode; }