diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-08-28 18:32:39 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-08-28 18:32:39 +0200 |
commit | 73ca600bca42f5ccf507ca4be1f53921973b44fe (patch) | |
tree | b7e2608239cd7179c02efcfe2bddfb5c4d74ca04 /blas | |
parent | ef4d79fed8b84f03fe3c7ace98442c822cf3472a (diff) |
Fix numerous shadow-warnings for GCC<=4.8
Diffstat (limited to 'blas')
-rw-r--r-- | blas/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/blas/common.h b/blas/common.h index 61d8344d9..960c09cc6 100644 --- a/blas/common.h +++ b/blas/common.h @@ -10,6 +10,14 @@ #ifndef EIGEN_BLAS_COMMON_H #define EIGEN_BLAS_COMMON_H +#ifdef __GNUC__ +# if __GNUC__<5 +// GCC < 5.0 does not like the global Scalar typedef +// we just keep shadow-warnings disabled permanently +# define EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS +# endif +#endif + #include "../Eigen/Core" #include "../Eigen/Jacobi" |