From fa16e7afc88fde00da14862d78460e2b49f8c612 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Wed, 4 Jun 2025 10:36:59 +0200 Subject: [PATCH] core: Silence Eigen deprecated declaration warnings for C++23 --- src/core/model/matrix-array.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/model/matrix-array.cc b/src/core/model/matrix-array.cc index 0d8da1961..512d13e65 100644 --- a/src/core/model/matrix-array.cc +++ b/src/core/model/matrix-array.cc @@ -15,9 +15,16 @@ #pragma GCC diagnostic ignored "-Wclass-memaccess" #pragma GCC diagnostic ignored "-Wunused-variable" #endif +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif #include +#if defined(__clang__) +#pragma clang diagnostic pop +#endif #if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic pop #endif