Json: Fix two fallthrough warnings

gcc 12.2.0 says
warning: this statement may fall through [-Wimplicit-fallthrough=]

Change-Id: I2deec77b4a79d3ef62339fb71f5ce5b52e2b9ee5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-06-29 12:34:14 +02:00
parent 1e81f206b0
commit fe7b45e374

View File

@@ -4806,7 +4806,7 @@ bool Value::isValid(const Base *b) const
case JsonValue::Double: case JsonValue::Double:
if (intValue) if (intValue)
break; break;
// fall through [[fallthrough]];
case JsonValue::String: case JsonValue::String:
case JsonValue::Array: case JsonValue::Array:
case JsonValue::Object: case JsonValue::Object:
@@ -4885,7 +4885,7 @@ uint32_t Value::valueToStore(const JsonValue &v, uint32_t offset)
if (c != INT_MAX) if (c != INT_MAX)
return c; return c;
} }
// fall through [[fallthrough]];
case JsonValue::String: case JsonValue::String:
case JsonValue::Array: case JsonValue::Array:
case JsonValue::Object: case JsonValue::Object: