diff --git a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h index 24953ec94..bd83c7c5c 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h @@ -380,7 +380,7 @@ class Tensor : public TensorBase& dimensions) { array dims; - for (int i = 0; i < NumIndices; ++i) { + for (std::size_t i = 0; i < NumIndices; ++i) { dims[i] = dimensions[i]; } resize(dims); @@ -390,7 +390,7 @@ class Tensor : public TensorBase& dimensions) { array dims; - for (int i = 0; i < NumIndices; ++i) { + for (std::size_t i = 0; i < NumIndices; ++i) { dims[i] = dimensions[i]; } resize(dims); diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h index 61750847e..9773afccf 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h @@ -38,7 +38,7 @@ template struct array_size const Index array_get(DimensionList&) { return n; } -template const Index array_get(const DimensionList&a) { +template const Index array_get(const DimensionList&) { return n; } diff --git a/unsupported/test/cxx11_meta.cpp b/unsupported/test/cxx11_meta.cpp index af5cadbf9..4f45e1dd3 100644 --- a/unsupported/test/cxx11_meta.cpp +++ b/unsupported/test/cxx11_meta.cpp @@ -354,7 +354,3 @@ void test_cxx11_meta() CALL_SUBTEST(test_array_zip_and_apply()); CALL_SUBTEST(test_array_misc()); } - -/* - * kate: space-indent on; indent-width 2; mixedindent off; indent-mode cstyle; - */