From 8dd17cbe80ef460e9fbd562d6de6ae19b264caea Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 17 Dec 2015 14:00:33 -0800 Subject: Fixed a clang compilation warning triggered by the use of arrays of size 0. --- unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h index 785321666..f28a9699d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h @@ -101,13 +101,18 @@ bool operator!=(const Tuple& x, const Tuple& y) { #ifdef EIGEN_HAS_SFINAE -namespace internal{ +namespace internal { template EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE array customIndices2Array(IndexType& idx, numeric_list) { return { idx[Is]... }; } + template + EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE + array customIndices2Array(IndexType&, numeric_list) { + return array(); + } /** Make an array (for index/dimensions) out of a custom index */ template -- cgit v1.2.3