Merge pull request #29988 from yqtian-se:fix-rvv-diagnostic-scope

core(rvv): restore GCC diagnostic state after scalable intrinsics
This commit is contained in:
Alexander Smorkalov
2026-09-19 14:32:11 +03:00
committed by GitHub

View File

@@ -13,9 +13,8 @@
#include <opencv2/core/check.hpp>
#if defined(__GNUC__) && !defined(__clang__)
// FIXIT: eliminate massive warnigs from templates
// GCC from 'rvv-next': riscv64-unknown-linux-gnu-g++ (g42df3464463) 12.0.1 20220505 (prerelease)
// doesn't work: #pragma GCC diagnostic push
// Suppress warnings from RVV vector types without changing includer state.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wignored-attributes"
#endif
@@ -2200,4 +2199,8 @@ CV_CPU_OPTIMIZATION_HAL_NAMESPACE_END
} //namespace cv
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
#endif //OPENCV_HAL_INTRIN_RVV_SCALABLE_HPP