From cbf80117afb488e7f18bf1616b30169e5f652f20 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 19 Dec 2018 15:42:38 +0300 Subject: [PATCH] eliminate build warnings --- 3rdparty/carotene/hal/CMakeLists.txt | 2 ++ 3rdparty/cpufeatures/cpu-features.h | 1 + 2 files changed, 3 insertions(+) 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