mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-10 05:13:02 +02:00
Don't initialize an atomic; squelch gcc warning
This commit is contained in:
parent
0cec9a72d6
commit
4d559bbaee
3 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ protected:
|
|||
int _packetsInLastWindow = 0;
|
||||
int _elementsInLastWindow = 0;
|
||||
int _entitiesInLastWindow = 0;
|
||||
std::atomic<OCTREE_PACKET_SEQUENCE> _lastOctreeMessageSequence = 0;
|
||||
std::atomic<OCTREE_PACKET_SEQUENCE> _lastOctreeMessageSequence;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ OctreeQuery::OctreeQuery(bool randomizeConnectionID) {
|
|||
}
|
||||
}
|
||||
|
||||
const OctreeQuery::OctreeQueryFlags operator|=(OctreeQuery::OctreeQueryFlags& lhs, int rhs) {
|
||||
OctreeQuery::OctreeQueryFlags operator|=(OctreeQuery::OctreeQueryFlags& lhs, int rhs) {
|
||||
return lhs = OctreeQuery::OctreeQueryFlags(lhs | rhs);
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ protected:
|
|||
QReadWriteLock _jsonParametersLock;
|
||||
|
||||
enum OctreeQueryFlags : uint16_t { NoFlags = 0x0, WantInitialCompletion = 0x1 };
|
||||
friend const OctreeQuery::OctreeQueryFlags operator|=(OctreeQuery::OctreeQueryFlags& lhs, const int rhs);
|
||||
friend OctreeQuery::OctreeQueryFlags operator|=(OctreeQuery::OctreeQueryFlags& lhs, const int rhs);
|
||||
|
||||
bool _hasReceivedFirstQuery { false };
|
||||
bool _reportInitialCompletion { false };
|
||||
|
|
Loading…
Reference in a new issue