Changed "[[gnu::fallthrough]]" to "// FALLTHRU"

This commit is contained in:
Oren Hurvitz 2018-05-02 09:01:11 +03:00
parent a226790295
commit 26ffb3213c
4 changed files with 5 additions and 15 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;

View file

@ -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: