diff --git a/3rdparty/carotene/hal/CMakeLists.txt b/3rdparty/carotene/hal/CMakeLists.txt index e382f037e8..c4b9acaedd 100644 --- a/3rdparty/carotene/hal/CMakeLists.txt +++ b/3rdparty/carotene/hal/CMakeLists.txt @@ -12,6 +12,8 @@ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64.*|AARCH64.*") set(AARCH64 TRUE) endif() +ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-function) + set(TEGRA_COMPILER_FLAGS "") if(CV_GCC OR CV_CLANG) diff --git a/3rdparty/cpufeatures/cpu-features.h b/3rdparty/cpufeatures/cpu-features.h index 1e9724197a..e109f02cf0 100644 --- a/3rdparty/cpufeatures/cpu-features.h +++ b/3rdparty/cpufeatures/cpu-features.h @@ -30,6 +30,7 @@ #include #include +#include __BEGIN_DECLS