mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 12:12:32 +02:00
Changed "[[gnu::fallthrough]]" to "// FALLTHRU"
This commit is contained in:
parent
a226790295
commit
26ffb3213c
4 changed files with 5 additions and 15 deletions
|
@ -149,10 +149,8 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
|
||||||
lostAudioData(packetsDropped);
|
lostAudioData(packetsDropped);
|
||||||
|
|
||||||
// fall through to OnTime case
|
// fall through to OnTime case
|
||||||
#if defined(__GNUC__)
|
|
||||||
[[gnu::fallthrough]];
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
// FALLTHRU
|
||||||
case SequenceNumberStats::OnTime: {
|
case SequenceNumberStats::OnTime: {
|
||||||
// Packet is on time; parse its data to the ringbuffer
|
// Packet is on time; parse its data to the ringbuffer
|
||||||
if (message.getType() == PacketType::SilentAudioFrame
|
if (message.getType() == PacketType::SilentAudioFrame
|
||||||
|
|
|
@ -1402,9 +1402,7 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
||||||
|
|
||||||
case PacketType::EntityAdd:
|
case PacketType::EntityAdd:
|
||||||
isAdd = true; // fall through to next case
|
isAdd = true; // fall through to next case
|
||||||
#if defined(__GNUC__)
|
// FALLTHRU
|
||||||
[[gnu::fallthrough]];
|
|
||||||
#endif
|
|
||||||
case PacketType::EntityPhysics:
|
case PacketType::EntityPhysics:
|
||||||
case PacketType::EntityEdit: {
|
case PacketType::EntityEdit: {
|
||||||
quint64 startDecode = 0, endDecode = 0;
|
quint64 startDecode = 0, endDecode = 0;
|
||||||
|
|
|
@ -749,10 +749,8 @@ bool Resource::handleFailedRequest(ResourceRequest::Result result) {
|
||||||
case ResourceRequest::Result::Timeout: {
|
case ResourceRequest::Result::Timeout: {
|
||||||
qCDebug(networking) << "Timed out loading" << _url << "received" << _bytesReceived << "total" << _bytesTotal;
|
qCDebug(networking) << "Timed out loading" << _url << "received" << _bytesReceived << "total" << _bytesTotal;
|
||||||
// Fall through to other cases
|
// Fall through to other cases
|
||||||
#if defined(__GNUC__)
|
|
||||||
[[gnu::fallthrough]];
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
// FALLTHRU
|
||||||
case ResourceRequest::Result::ServerUnavailable: {
|
case ResourceRequest::Result::ServerUnavailable: {
|
||||||
_attempts++;
|
_attempts++;
|
||||||
_attemptsRemaining--;
|
_attemptsRemaining--;
|
||||||
|
@ -770,10 +768,8 @@ bool Resource::handleFailedRequest(ResourceRequest::Result result) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// fall through to final failure
|
// fall through to final failure
|
||||||
#if defined(__GNUC__)
|
|
||||||
[[gnu::fallthrough]];
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
// FALLTHRU
|
||||||
default: {
|
default: {
|
||||||
_attemptsRemaining = 0;
|
_attemptsRemaining = 0;
|
||||||
qCDebug(networking) << "Error loading " << _url << "attempt:" << _attempts << "attemptsRemaining:" << _attemptsRemaining;
|
qCDebug(networking) << "Error loading " << _url << "attempt:" << _attempts << "attemptsRemaining:" << _attemptsRemaining;
|
||||||
|
|
|
@ -60,9 +60,7 @@ bool gunzip(QByteArray source, QByteArray &destination) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case Z_NEED_DICT:
|
case Z_NEED_DICT:
|
||||||
status = Z_DATA_ERROR;
|
status = Z_DATA_ERROR;
|
||||||
#if defined(__GNUC__)
|
// FALLTHRU
|
||||||
[[gnu::fallthrough]];
|
|
||||||
#endif
|
|
||||||
case Z_DATA_ERROR:
|
case Z_DATA_ERROR:
|
||||||
case Z_MEM_ERROR:
|
case Z_MEM_ERROR:
|
||||||
case Z_STREAM_ERROR:
|
case Z_STREAM_ERROR:
|
||||||
|
|
Loading…
Reference in a new issue