Qmake: More [[fallthrough]] warnings

Change-Id: I45acf2b2f6bd11a144786e076d87398d729fe2d8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-06-28 08:37:05 +02:00
parent c529a87240
commit 5d69944ead
3 changed files with 4 additions and 4 deletions

View File

@@ -287,7 +287,7 @@ QMakeEvaluator::quoteValue(const ProString &val)
break; break;
case 32: case 32:
quote = true; quote = true;
// fallthrough [[fallthrough]];
default: default:
ret += c; ret += c;
break; break;

View File

@@ -1662,7 +1662,7 @@ QMakeEvaluator::VisitReturn QMakeEvaluator::expandVariableReferences(
tokPtr++; tokPtr++;
continue; continue;
} }
// fallthrough [[fallthrough]];
default: default:
Q_ASSERT_X(false, "expandVariableReferences", "Unrecognized token"); Q_ASSERT_X(false, "expandVariableReferences", "Unrecognized token");
break; break;
@@ -2138,7 +2138,7 @@ QString QMakeEvaluator::formatValue(const ProString &val, bool forceQuote)
break; break;
case 32: case 32:
quote = true; quote = true;
// fallthrough [[fallthrough]];
default: default:
ret += c; ret += c;
break; break;

View File

@@ -1563,7 +1563,7 @@ static bool getBlock(const ushort *tokens, int limit, int &offset, QString *outS
case TokRemove: case TokRemove:
case TokReplace: case TokReplace:
// The parameter is the sizehint for the output. // The parameter is the sizehint for the output.
// fallthrough [[fallthrough]];
case TokLine: { case TokLine: {
ushort dummy; ushort dummy;
ok = getUshort(tokens, limit, offset, &dummy, outStr); ok = getUshort(tokens, limit, offset, &dummy, outStr);