diff --git a/Modules/ThirdParty/Eigen3/src/itkeigen/Eigen/src/Core/products/SelfadjointMatrixVector.h b/Modules/ThirdParty/Eigen3/src/itkeigen/Eigen/src/Core/products/SelfadjointMatrixVector.h index f7387601ffb..1b74a1d24fe 100644 --- a/Modules/ThirdParty/Eigen3/src/itkeigen/Eigen/src/Core/products/SelfadjointMatrixVector.h +++ b/Modules/ThirdParty/Eigen3/src/itkeigen/Eigen/src/Core/products/SelfadjointMatrixVector.h @@ -13,6 +13,13 @@ // IWYU pragma: private #include "../InternalHeaderCheck.h" +// GCC on ARM (aarch64) emits false-positive -Wmaybe-uninitialized warnings +// in the vectorized selfadjoint matrix-vector product kernel. +#if defined(__GNUC__) && !defined(__clang__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif + namespace Eigen { namespace internal { @@ -250,4 +257,8 @@ struct selfadjoint_product_impl { } // end namespace Eigen +#if defined(__GNUC__) && !defined(__clang__) +# pragma GCC diagnostic pop +#endif + #endif // EIGEN_SELFADJOINT_MATRIX_VECTOR_H