MSVC: Slience external/meaningless warnings

pull/1770/head
Hamdi Sahloul 7 years ago
parent 1fe10ef529
commit d1b5431094
  1. 9
      modules/rgbd/src/odometry.cpp

@ -37,9 +37,18 @@
#if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3 #if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3
# define HAVE_EIGEN3_HERE # define HAVE_EIGEN3_HERE
# 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/Core> # include <Eigen/Core>
# include <unsupported/Eigen/MatrixFunctions> # include <unsupported/Eigen/MatrixFunctions>
# include <Eigen/Dense> # include <Eigen/Dense>
# if defined(_MSC_VER)
# pragma warning(pop)
# endif
#endif #endif
namespace cv namespace cv

Loading…
Cancel
Save