diff options
| author | Alexey Edelev <alexey.edelev@qt.io> | 2025-01-15 12:31:38 +0100 |
|---|---|---|
| committer | Alexey Edelev <alexey.edelev@qt.io> | 2025-01-17 20:29:19 +0100 |
| commit | a57d5b1fd60b6b6848ef8ad9db237941229d7a23 (patch) | |
| tree | fe1316a7f503ae38ef64b2013b426a237f5975fc /src/corelib/serialization/qjsonarray.cpp | |
| parent | 256b56f581a66acde829a2f47b3d0f6ed464fb44 (diff) | |
Fix the unsupported Q_UNREACHABLE_RETURN statement in constexpr functions
GCC 8.x does not treat __builtin_unreachable() as constexpr and
disallows using the Q_UNREACHABLE_RETURN macro. Guard the statements
with the respective checks.
Amends b0b34c56a99130bfc9c82cb006653ce6b8f0516e
Pick-to: 6.8 6.9
Task-number: QTBUG-125285
Fixes: QTBUG-132804
Change-Id: I88cdbe3bae1a336edc255e3e93e8d948bde253da
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonarray.cpp')
0 files changed, 0 insertions, 0 deletions
