diff --git a/modules/saliency/CMakeLists.txt b/modules/saliency/CMakeLists.txt index 9a4016f2b..e32058e3f 100644 --- a/modules/saliency/CMakeLists.txt +++ b/modules/saliency/CMakeLists.txt @@ -2,3 +2,5 @@ set(the_description "Saliency API") set(OPENCV_MODULE_IS_PART_OF_WORLD OFF) ocv_define_module(saliency opencv_imgproc opencv_highgui opencv_features2d WRAP python) + +ocv_warnings_disable(CMAKE_CXX_FLAGS -Woverloaded-virtual) diff --git a/modules/ximgproc/test/test_adaptive_manifold_ref_impl.cpp b/modules/ximgproc/test/test_adaptive_manifold_ref_impl.cpp index 70d329e8e..8f2db66a3 100644 --- a/modules/ximgproc/test/test_adaptive_manifold_ref_impl.cpp +++ b/modules/ximgproc/test/test_adaptive_manifold_ref_impl.cpp @@ -253,7 +253,7 @@ namespace const double Lr = 1.0 - sigma_r; return max(2, static_cast(ceil(Hs * Lr))); } - +/* void ensureSizeIsEnough(int rows, int cols, int type, Mat& m) { if (m.empty() || m.type() != type || m.data != m.datastart) @@ -283,7 +283,7 @@ namespace { ensureSizeIsEnough(size.height, size.width, type, m); } - +*/ template inline void ensureSizeIsEnough(int rows, int cols, Mat_& m) {