1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

MSVC: Slience external/meaningless warnings

This commit is contained in:
Hamdi Sahloul
2018-09-12 13:23:36 +09:00
parent 38f8fc6c82
commit 03b3be0f51
7 changed files with 51 additions and 6 deletions
+10 -1
View File
@@ -44,7 +44,16 @@
#include "opencl_kernels_features2d.hpp"
#if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 2
#include <Eigen/Array>
# if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable:4701) // potentially uninitialized local variable
# pragma warning(disable:4702) // unreachable code
# pragma warning(disable:4714) // const marked as __forceinline not inlined
# endif
# include <Eigen/Array>
# if defined(_MSC_VER)
# pragma warning(pop)
# endif
#endif
namespace cv