From 8097d8d028707583f80cf817e19e5f5dd17642f1 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Mon, 17 Aug 2015 21:50:52 +0200 Subject: surpress some warnings --- Eigen/src/Core/PlainObjectBase.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Eigen/src/Core/PlainObjectBase.h') diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index e83b92476..48e29ebdc 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -116,9 +116,12 @@ class PlainObjectBase : public internal::dense_xpr_base::type typedef Eigen::Map MapType; friend class Eigen::Map; typedef const Eigen::Map ConstMapType; +#if EIGEN_MAX_ALIGN_BYTES>0 + // for EIGEN_MAX_ALIGN_BYTES==0, AlignedMax==Unaligned, and many compilers generate warnings for friend-ing a class twice. friend class Eigen::Map; - typedef Eigen::Map AlignedMapType; friend class Eigen::Map; +#endif + typedef Eigen::Map AlignedMapType; typedef const Eigen::Map ConstAlignedMapType; template struct StridedMapType { typedef Eigen::Map type; }; template struct StridedConstMapType { typedef Eigen::Map type; }; -- cgit v1.2.3