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 {