Merge pull request #22246 from asenyaev:asen/fix_warning_lnx_arm64_3.4

pull/22225/head
Alexander Alekhin 2 years ago
commit 1377f0147e
  1. 4
      modules/features2d/src/sift.simd.hpp

@ -829,10 +829,14 @@ else // CV_8U
v_pack_store(dst + k, __pack01); v_pack_store(dst + k, __pack01);
} }
#endif #endif
// avoid warning "iteration 7 invokes undefined behavior" on Linux ARM64
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waggressive-loop-optimizations"
for( ; k < len; k++ ) for( ; k < len; k++ )
{ {
dst[k] = saturate_cast<uchar>(rawDst[k]*nrm2); dst[k] = saturate_cast<uchar>(rawDst[k]*nrm2);
} }
#pragma GCC diagnostic pop
} }
#else #else
float* dst = dstMat.ptr<float>(row); float* dst = dstMat.ptr<float>(row);

Loading…
Cancel
Save