diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-10-08 16:28:14 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-10-08 16:28:14 +0200 |
commit | 36da231a411733e5f0880c59df4b25713e3f0fd2 (patch) | |
tree | 1e50acfeb441b3b047bacc2fb5ebb04c68dcfc31 /test/AnnoyingScalar.h | |
parent | d1def335dc0900ccfc7b8879a1a978f975008000 (diff) |
Disable an expected warning in unit test
Diffstat (limited to 'test/AnnoyingScalar.h')
-rw-r--r-- | test/AnnoyingScalar.h | 4 |
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 { |