Skip to content

Commit 1e27859

Browse files
authored
Merge pull request InsightSoftwareConsortium#5953 from hjmjohnson/suppress-eigen-wmaybe-uninitialized
COMP: Suppress GCC -Wmaybe-uninitialized in Eigen3 SelfadjointMatrixVector
2 parents d338c1f + da8e99c commit 1e27859

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Modules/ThirdParty/Eigen3/src/itkeigen/Eigen/src/Core/products/SelfadjointMatrixVector.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
// IWYU pragma: private
1414
#include "../InternalHeaderCheck.h"
1515

16+
// GCC on ARM (aarch64) emits false-positive -Wmaybe-uninitialized warnings
17+
// in the vectorized selfadjoint matrix-vector product kernel.
18+
#if defined(__GNUC__) && !defined(__clang__)
19+
# pragma GCC diagnostic push
20+
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
21+
#endif
22+
1623
namespace Eigen {
1724

1825
namespace internal {
@@ -250,4 +257,8 @@ struct selfadjoint_product_impl<Lhs, 0, true, Rhs, RhsMode, false> {
250257

251258
} // end namespace Eigen
252259

260+
#if defined(__GNUC__) && !defined(__clang__)
261+
# pragma GCC diagnostic pop
262+
#endif
263+
253264
#endif // EIGEN_SELFADJOINT_MATRIX_VECTOR_H

0 commit comments

Comments
 (0)