summaryrefslogtreecommitdiffstats
path: root/src/core5/text
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-26 21:27:31 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-26 21:38:20 +0100
commite65fbb9676a3c3fa8e1e55df608bf7962e86e8ea (patch)
treebe67ec0247399f17b96b2120abf181a4db6b0565 /src/core5/text
parent14f05475078d80f50065766d7a530ddeaa38b2cd (diff)
Fix compile warning from potentially unused overload
On macOS's clang 12, the foldCase overload for char32_t is not used, which generates a compile warning. Change-Id: I68e2e2f00d2c1da7c692fee1f80d900df42895f2 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src/core5/text')
-rw-r--r--src/core5/text/qstringref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core5/text/qstringref.cpp b/src/core5/text/qstringref.cpp
index 6a07da0..8dc3750 100644
--- a/src/core5/text/qstringref.cpp
+++ b/src/core5/text/qstringref.cpp
@@ -170,7 +170,7 @@ namespace QCharPrivate
return uc + fold.diff;
}
- static inline char32_t foldCase(char32_t ch, char32_t &last) noexcept
+ [[maybe_unused]] static inline char32_t foldCase(char32_t ch, char32_t &last) noexcept
{
char32_t ucs4 = ch;
if (QChar::isLowSurrogate(ucs4) && QChar::isHighSurrogate(last))