summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@qt.io>2022-05-25 13:31:18 +0300
committerVille Voutilainen <ville.voutilainen@qt.io>2022-05-27 17:28:37 +0300
commit5431b40ee87ade502825258d67304882a33f9294 (patch)
treeafa75e05056ea8c611fa5e32cb85d699b5c1032c
parentfb9b452f18c98b06d31d115237cdc7a4450c9268 (diff)
Avoid some new clang 14 warnings on Android NDK 24 build
Task-number: QTBUG-99663 Change-Id: I1aa408ba468342e2fac2323ae91ff650b871c563 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
-rw-r--r--cmake/QtInternalTargets.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake
index 78c5ec898e..c863e6c5e6 100644
--- a/cmake/QtInternalTargets.cmake
+++ b/cmake/QtInternalTargets.cmake
@@ -8,6 +8,11 @@ function(qt_internal_set_warnings_are_errors_flags target target_scope)
# We do mixed enum arithmetic all over the place:
list(APPEND flags -Wno-error=deprecated-enum-enum-conversion)
endif()
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "14.0.0")
+ # Clang 14 introduced these two but we are not clean for it.
+ list(APPEND flags -Wno-error=deprecated-copy-with-user-provided-copy)
+ list(APPEND flags -Wno-error=unused-but-set-variable)
+ endif()
endif()
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC