From 0016b550f73268b4e6c42bf7492778e31a727bc7 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Fri, 7 Jul 2017 21:04:12 +0200 Subject: [PATCH] Silence warning / virtual destructor inside bufferpool.hpp --- modules/core/include/opencv2/core/bufferpool.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/core/include/opencv2/core/bufferpool.hpp b/modules/core/include/opencv2/core/bufferpool.hpp index 9e7b7c2b2792..2dbe91930e59 100644 --- a/modules/core/include/opencv2/core/bufferpool.hpp +++ b/modules/core/include/opencv2/core/bufferpool.hpp @@ -7,6 +7,11 @@ #ifndef OPENCV_CORE_BUFFER_POOL_HPP #define OPENCV_CORE_BUFFER_POOL_HPP +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable: 4265) // class has virtual functions, but destructor is not virtual +#endif + namespace cv { @@ -28,4 +33,8 @@ class BufferPoolController } +#ifdef _MSC_VER +#pragma warning(pop) +#endif + #endif // OPENCV_CORE_BUFFER_POOL_HPP