diff --git a/modules/core/include/opencv2/core/cv_cpu_dispatch.h b/modules/core/include/opencv2/core/cv_cpu_dispatch.h index c41c21da60..06e1bfa535 100644 --- a/modules/core/include/opencv2/core/cv_cpu_dispatch.h +++ b/modules/core/include/opencv2/core/cv_cpu_dispatch.h @@ -108,7 +108,7 @@ struct VZeroUpperGuard { #endif inline ~VZeroUpperGuard() { _mm256_zeroupper(); } }; -#define __CV_AVX_GUARD VZeroUpperGuard __vzeroupper_guard; +#define __CV_AVX_GUARD VZeroUpperGuard __vzeroupper_guard; (void)__vzeroupper_guard; #endif #endif // __OPENCV_BUILD