summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qlocale_unix.cpp
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-04-01 10:26:21 +0800
committerThiago Macieira <thiago.macieira@intel.com>2024-04-05 02:17:42 +0000
commit93f87326f2a69ddbbb8d82fcc2b506a486aece1e (patch)
treea80b4843144611132c77d5b6fc9dfdb642d8f8fd /src/corelib/text/qlocale_unix.cpp
parent72a86dc0f88d7e71fc804f02a1945685b7af04e6 (diff)
QLocale: silence fallthrough warning
clang doesn't seem to consider `Q_ASSERT(false)` as empty statement. Pick-to: 6.7 Change-Id: If99c7d4874450d781182491ef3963f1ee96285a6 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/text/qlocale_unix.cpp')
-rw-r--r--src/corelib/text/qlocale_unix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/text/qlocale_unix.cpp b/src/corelib/text/qlocale_unix.cpp
index 6f6884d366..db4108fb71 100644
--- a/src/corelib/text/qlocale_unix.cpp
+++ b/src/corelib/text/qlocale_unix.cpp
@@ -265,6 +265,7 @@ QVariant QSystemLocale::query(QueryType type, QVariant in) const
return lc_messages.createSeparatedList(in.toStringList());
case LocaleChanged:
Q_ASSERT(false);
+ [[fallthrough]];
default:
break;
}