aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/AnnoyingScalar.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2019-10-08 16:28:14 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2019-10-08 16:28:14 +0200
commit36da231a411733e5f0880c59df4b25713e3f0fd2 (patch)
tree1e50acfeb441b3b047bacc2fb5ebb04c68dcfc31 /test/AnnoyingScalar.h
parentd1def335dc0900ccfc7b8879a1a978f975008000 (diff)
Disable an expected warning in unit test
Diffstat (limited to 'test/AnnoyingScalar.h')
-rw-r--r--test/AnnoyingScalar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/AnnoyingScalar.h b/test/AnnoyingScalar.h
index 2b6544a6a..889e6cc86 100644
--- a/test/AnnoyingScalar.h
+++ b/test/AnnoyingScalar.h
@@ -12,6 +12,10 @@
#include <ostream>
+#if EIGEN_COMP_GNUC
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
#ifndef EIGEN_TEST_ANNOYING_SCALAR_DONT_THROW
struct my_exception
{