aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/symbolic_index.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-10-08 18:26:05 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-10-08 18:26:05 +0200
commitc6e2dde714164a1373cba78903107ee28f83286c (patch)
tree9d520d4e2c93188e73fa789e520df20f4050a8b5 /test/symbolic_index.cpp
parent6cc9b2c831de95a4798d474e7d007e074d27ff1d (diff)
fix c++11 deprecated warning
Diffstat (limited to 'test/symbolic_index.cpp')
-rw-r--r--test/symbolic_index.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/symbolic_index.cpp b/test/symbolic_index.cpp
index bccf1b884..ea73e99e9 100644
--- a/test/symbolic_index.cpp
+++ b/test/symbolic_index.cpp
@@ -9,6 +9,12 @@
#ifdef EIGEN_TEST_PART_2
#define EIGEN_MAX_CPP_VER 03
+
+// see indexed_view.cpp
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))
+ #pragma GCC diagnostic ignored "-Wdeprecated"
+#endif
+
#endif
#include "main.h"