Merge pull request #23631 from asmorkalov:as/eigen_NOMINMAX_warning_fix

Build warning fix on Windows for Eigen wrapper.
This commit is contained in:
Alexander Smorkalov 2023-05-19 21:06:41 +03:00 committed by GitHub
commit 3f3c821800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,9 @@
#include "opencv2/core.hpp"
#if defined _MSC_VER && _MSC_VER >= 1200
#ifndef NOMINMAX
#define NOMINMAX // fix https://github.com/opencv/opencv/issues/17548
#endif
#pragma warning( disable: 4714 ) //__forceinline is not inlined
#pragma warning( disable: 4127 ) //conditional expression is constant
#pragma warning( disable: 4244 ) //conversion from '__int64' to 'int', possible loss of data