From e661ad2a67fce8617bcad6255b76c4810d6d3c27 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 27 Mar 2020 11:39:07 +0000 Subject: [PATCH] eliminate build warnings --- modules/core/src/parallel.cpp | 3 +++ modules/dnn/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/modules/core/src/parallel.cpp b/modules/core/src/parallel.cpp index 3d02d748b9..784e824280 100644 --- a/modules/core/src/parallel.cpp +++ b/modules/core/src/parallel.cpp @@ -95,6 +95,9 @@ */ #if defined HAVE_TBB + #ifndef TBB_SUPPRESS_DEPRECATED_MESSAGES // supress warning + #define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 + #endif #include "tbb/tbb.h" #include "tbb/task.h" #include "tbb/tbb_stddef.h" diff --git a/modules/dnn/CMakeLists.txt b/modules/dnn/CMakeLists.txt index 5c8628fb5a..8b7dd2faea 100644 --- a/modules/dnn/CMakeLists.txt +++ b/modules/dnn/CMakeLists.txt @@ -100,6 +100,7 @@ endif() ocv_module_include_directories(${include_dirs}) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") ocv_append_source_files_cxx_compiler_options(fw_srcs "-Wno-suggest-override") # GCC + ocv_append_source_files_cxx_compiler_options(fw_srcs "-Wno-array-bounds") # GCC 9.3.0 (Ubuntu 20.04) elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") ocv_append_source_files_cxx_compiler_options(fw_srcs "-Wno-inconsistent-missing-override") # Clang endif()