aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-06-29 12:34:14 +0200
committerhjk <hjk@qt.io>2023-06-29 12:34:45 +0000
commitfe7b45e3744799e1076c4bbbc1d7ca08fd9d2e0b (patch)
treea0df701a9449dc084e849f49c17086935c980b0d /src/shared
parent1e81f206b039802df3fa59702dca36b07b0c7f80 (diff)
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>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/json/json.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/json/json.cpp b/src/shared/json/json.cpp
index 4f9c94ef376..759fea61f92 100644
--- a/src/shared/json/json.cpp
+++ b/src/shared/json/json.cpp
@@ -4806,7 +4806,7 @@ bool Value::isValid(const Base *b) const
case JsonValue::Double:
if (intValue)
break;
- // fall through
+ [[fallthrough]];
case JsonValue::String:
case JsonValue::Array:
case JsonValue::Object:
@@ -4885,7 +4885,7 @@ uint32_t Value::valueToStore(const JsonValue &v, uint32_t offset)
if (c != INT_MAX)
return c;
}
- // fall through
+ [[fallthrough]];
case JsonValue::String:
case JsonValue::Array:
case JsonValue::Object: