MSVC: Slience external/meaningless warnings

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

@ -36,10 +36,19 @@
#include "precomp.hpp"
#if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3
#define HAVE_EIGEN3_HERE
#include <Eigen/Core>
#include <unsupported/Eigen/MatrixFunctions>
#include <Eigen/Dense>
# 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 <unsupported/Eigen/MatrixFunctions>
# include <Eigen/Dense>
# if defined(_MSC_VER)
# pragma warning(pop)
# endif
#endif
namespace cv

Loading…
Cancel
Save