mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 05:26: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);
|
||||
|
||||
// fall through to OnTime case
|
||||
#if defined(__GNUC__)
|
||||
[[gnu::fallthrough]];
|
||||
#endif
|
||||
}
|
||||
// FALLTHRU
|
||||
case SequenceNumberStats::OnTime: {
|
||||
// Packet is on time; parse its data to the ringbuffer
|
||||
if (message.getType() == PacketType::SilentAudioFrame
|
||||
|
|
|
@ -1402,9 +1402,7 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
|||
|
||||
case PacketType::EntityAdd:
|
||||
isAdd = true; // fall through to next case
|
||||
#if defined(__GNUC__)
|
||||
[[gnu::fallthrough]];
|
||||
#endif
|
||||
// FALLTHRU
|
||||
case PacketType::EntityPhysics:
|
||||
case PacketType::EntityEdit: {
|
||||
quint64 startDecode = 0, endDecode = 0;
|
||||
|
|
|
@ -749,10 +749,8 @@ bool Resource::handleFailedRequest(ResourceRequest::Result result) {
|
|||
case ResourceRequest::Result::Timeout: {
|
||||
qCDebug(networking) << "Timed out loading" << _url << "received" << _bytesReceived << "total" << _bytesTotal;
|
||||
// Fall through to other cases
|
||||
#if defined(__GNUC__)
|
||||
[[gnu::fallthrough]];
|
||||
#endif
|
||||
}
|
||||
// FALLTHRU
|
||||
case ResourceRequest::Result::ServerUnavailable: {
|
||||
_attempts++;
|
||||
_attemptsRemaining--;
|
||||
|
@ -770,10 +768,8 @@ bool Resource::handleFailedRequest(ResourceRequest::Result result) {
|
|||
break;
|
||||
}
|
||||
// fall through to final failure
|
||||
#if defined(__GNUC__)
|
||||
[[gnu::fallthrough]];
|
||||
#endif
|
||||
}
|
||||
// FALLTHRU
|
||||
default: {
|
||||
_attemptsRemaining = 0;
|
||||
qCDebug(networking) << "Error loading " << _url << "attempt:" << _attempts << "attemptsRemaining:" << _attemptsRemaining;
|
||||
|
|
|
@ -60,9 +60,7 @@ bool gunzip(QByteArray source, QByteArray &destination) {
|
|||
switch (status) {
|
||||
case Z_NEED_DICT:
|
||||
status = Z_DATA_ERROR;
|
||||
#if defined(__GNUC__)
|
||||
[[gnu::fallthrough]];
|
||||
#endif
|
||||
// FALLTHRU
|
||||
case Z_DATA_ERROR:
|
||||
case Z_MEM_ERROR:
|
||||
case Z_STREAM_ERROR:
|
||||
|
|
Loading…
Reference in a new issue