1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +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
@@ -57,7 +57,16 @@
# if defined __GNUC__ && defined __APPLE__
# pragma GCC diagnostic ignored "-Wshadow"
# endif
# 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>
# if defined(_MSC_VER)
# pragma warning(pop)
# endif
# include "opencv2/core/eigen.hpp"
#endif