Skip to content

Commit 9b9e685

Browse files
committed
Merge pull request opencv#9142 from alalek:vzeroupper_guard_unused_warning
2 parents 49bb0bf + e7cc2ee commit 9b9e685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/include/opencv2/core/cv_cpu_dispatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ struct VZeroUpperGuard {
108108
#endif
109109
inline ~VZeroUpperGuard() { _mm256_zeroupper(); }
110110
};
111-
#define __CV_AVX_GUARD VZeroUpperGuard __vzeroupper_guard;
111+
#define __CV_AVX_GUARD VZeroUpperGuard __vzeroupper_guard; (void)__vzeroupper_guard;
112112
#endif
113113

114114
#endif // __OPENCV_BUILD

0 commit comments

Comments
 (0)