From 2f22a6e465ebcd31f8385cdab147775f3ea8eb8f Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Tue, 6 Dec 2022 13:52:34 +0100 Subject: [PATCH] Mark static mm_load8_zero_extend [[maybe_unused]] static Q_ALWAYS_INLINE __m128i mm_load8_zero_extend(const void *ptr) is unused when compiled on Android. This causes a compiler warning and blocks CI, if compiled with -Werror. This patch marks the method [[maybe_unused]], in order to prevent the warning. Change-Id: Ife10c0a84ac34196405ce9c2356351d825751adb Reviewed-by: Volker Hilsheimer --- src/corelib/text/qstring.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index ae2e38f1a3..0104e5dd0a 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -400,6 +400,7 @@ static constexpr bool UseSse4_1 = bool(qCompilerCpuFeatures & CpuFeatureSSE4_1); static constexpr bool UseAvx2 = UseSse4_1 && (qCompilerCpuFeatures & CpuFeatureArchHaswell) == CpuFeatureArchHaswell; +[[maybe_unused]] static Q_ALWAYS_INLINE __m128i mm_load8_zero_extend(const void *ptr) { const __m128i *dataptr = static_cast(ptr);