From b08e755f07c4648b2ed050c488c824a73e3fb673 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Sat, 8 Mar 2025 18:41:37 +0000 Subject: [PATCH] core: Disable error on class-memaccess from Eigen --- src/core/model/matrix-array.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/model/matrix-array.cc b/src/core/model/matrix-array.cc index ef48e772f..8862bb89b 100644 --- a/src/core/model/matrix-array.cc +++ b/src/core/model/matrix-array.cc @@ -9,7 +9,17 @@ #include "matrix-array.h" #ifdef HAVE_EIGEN3 + +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wclass-memaccess" +#endif + #include + +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif #endif namespace ns3