From ef570e4e135e5c7259f194b2c4534ddc470db06a Mon Sep 17 00:00:00 2001 From: Andrey Senyaev Date: Mon, 22 Aug 2022 17:42:22 +0300 Subject: [PATCH] Suppress warnings in carotene on macOS ARM64 for 3.4 branch --- 3rdparty/carotene/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3rdparty/carotene/CMakeLists.txt b/3rdparty/carotene/CMakeLists.txt index 3d49a2def6..091990d722 100644 --- a/3rdparty/carotene/CMakeLists.txt +++ b/3rdparty/carotene/CMakeLists.txt @@ -27,6 +27,10 @@ if(CMAKE_COMPILER_IS_GNUCC) endif() endif() +if(APPLE AND CV_CLANG AND WITH_NEON) + ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-unused-function -Wno-c++11-extensions) +endif() + add_library(carotene_objs OBJECT EXCLUDE_FROM_ALL ${carotene_headers} ${carotene_sources}