diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2022-12-06 13:52:34 +0100 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2022-12-07 10:26:06 +0100 |
commit | 2f22a6e465ebcd31f8385cdab147775f3ea8eb8f (patch) | |
tree | f1d95d8b5b73de1c32b3fad3fe2f89534f2cd6ac /src | |
parent | 68fd43212c22397ae952959a49cb2746ac89dce3 (diff) |
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 <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/text/qstring.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<const __m128i *>(ptr); |