diff --git a/modules/features2d/src/sift.simd.hpp b/modules/features2d/src/sift.simd.hpp index b5033459b9..dfe113b9b3 100644 --- a/modules/features2d/src/sift.simd.hpp +++ b/modules/features2d/src/sift.simd.hpp @@ -829,10 +829,14 @@ else // CV_8U v_pack_store(dst + k, __pack01); } #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++ ) { dst[k] = saturate_cast(rawDst[k]*nrm2); } +#pragma GCC diagnostic pop } #else float* dst = dstMat.ptr(row);