Skip to content

Commit

Permalink
Silence warning / virtual destructor inside bufferpool.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Thomet committed Jul 7, 2017
1 parent a16f80e commit 0016b55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/core/include/opencv2/core/bufferpool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand All @@ -28,4 +33,8 @@ class BufferPoolController

}

#ifdef _MSC_VER
#pragma warning(pop)
#endif

#endif // OPENCV_CORE_BUFFER_POOL_HPP

0 comments on commit 0016b55

Please sign in to comment.