From 5431b40ee87ade502825258d67304882a33f9294 Mon Sep 17 00:00:00 2001 From: Ville Voutilainen Date: Wed, 25 May 2022 13:31:18 +0300 Subject: Avoid some new clang 14 warnings on Android NDK 24 build Task-number: QTBUG-99663 Change-Id: I1aa408ba468342e2fac2323ae91ff650b871c563 Reviewed-by: Assam Boudjelthia Reviewed-by: Marc Mutz --- cmake/QtInternalTargets.cmake | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3