From c725771e11a0e821eb977d5db0c453e9ed43a96c Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sun, 11 Dec 2022 17:10:00 +0000 Subject: [PATCH] build(riscv): suppress massive -Wignored-attributes warnings --- .../core/include/opencv2/core/hal/intrin_rvv_scalable.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/core/include/opencv2/core/hal/intrin_rvv_scalable.hpp b/modules/core/include/opencv2/core/hal/intrin_rvv_scalable.hpp index c38f1f57db..96069b92b5 100644 --- a/modules/core/include/opencv2/core/hal/intrin_rvv_scalable.hpp +++ b/modules/core/include/opencv2/core/hal/intrin_rvv_scalable.hpp @@ -13,6 +13,13 @@ #include #include +#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 +#pragma GCC diagnostic ignored "-Wignored-attributes" +#endif + #ifndef CV_RVV_MAX_VLEN #define CV_RVV_MAX_VLEN 1024 #endif