From c6e2dde714164a1373cba78903107ee28f83286c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 8 Oct 2018 18:26:05 +0200 Subject: [PATCH] fix c++11 deprecated warning --- test/symbolic_index.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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"