suppress warnings on OpenCL build

* stop re-enabling the warning C4127
  * disabling is done in CMakeLists.txt
This commit is contained in:
Tomoaki Teshima 2017-12-13 15:07:51 +09:00
parent b0bce60c16
commit 267c5a747b

View File

@ -4339,9 +4339,6 @@ public:
#if defined _MSC_VER
#pragma warning(disable:4127) // conditional expression is constant
#endif
template <bool readAccess, bool writeAccess>
class AlignedDataPtr
{
@ -4446,9 +4443,6 @@ private:
AlignedDataPtr2D(const AlignedDataPtr2D&); // disabled
AlignedDataPtr2D& operator=(const AlignedDataPtr2D&); // disabled
};
#if defined _MSC_VER
#pragma warning(default:4127) // conditional expression is constant
#endif
#ifndef CV_OPENCL_DATA_PTR_ALIGNMENT
#define CV_OPENCL_DATA_PTR_ALIGNMENT 16