Skip to content

Commit fa16e7a

Browse files
core: Silence Eigen deprecated declaration warnings for C++23
1 parent c464ba6 commit fa16e7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/core/model/matrix-array.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@
1515
#pragma GCC diagnostic ignored "-Wclass-memaccess"
1616
#pragma GCC diagnostic ignored "-Wunused-variable"
1717
#endif
18+
#if defined(__clang__)
19+
#pragma clang diagnostic push
20+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
21+
#endif
1822

1923
#include <Eigen/Dense>
2024

25+
#if defined(__clang__)
26+
#pragma clang diagnostic pop
27+
#endif
2128
#if defined(__GNUC__) && !defined(__clang__)
2229
#pragma GCC diagnostic pop
2330
#endif

0 commit comments

Comments
 (0)