mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
build: fix/eliminate MSVC warnings
This commit is contained in:
@@ -57,6 +57,11 @@
|
||||
#include "opencv2/core/cvstd.hpp"
|
||||
#include "opencv2/core/matx.hpp"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4459) // declaration of '...' hides global declaration
|
||||
#endif
|
||||
|
||||
namespace cv
|
||||
{
|
||||
|
||||
@@ -2445,4 +2450,8 @@ TermCriteria::TermCriteria(int _type, int _maxCount, double _epsilon)
|
||||
|
||||
} // cv
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#endif //OPENCV_CORE_TYPES_HPP
|
||||
|
||||
@@ -1081,7 +1081,7 @@ template<typename R> struct TheTest
|
||||
typedef typename VTraits<uint_reg>::lane_type uint_type;
|
||||
|
||||
Data<R> dataA, dataB(0), dataC, dataD(1), dataE(2);
|
||||
dataA[0] = std::numeric_limits<int_type>::max();
|
||||
dataA[0] = (LaneType)std::numeric_limits<int_type>::max();
|
||||
dataA[1] *= (LaneType)-1;
|
||||
union
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user