From 36da231a411733e5f0880c59df4b25713e3f0fd2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 8 Oct 2019 16:28:14 +0200 Subject: Disable an expected warning in unit test --- test/AnnoyingScalar.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/AnnoyingScalar.h') 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 +#if EIGEN_COMP_GNUC +#pragma GCC diagnostic ignored "-Wshadow" +#endif + #ifndef EIGEN_TEST_ANNOYING_SCALAR_DONT_THROW struct my_exception { -- cgit v1.2.3