forked from qt-creator/qt-creator
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:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user