diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-06-30 10:36:17 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-06-30 10:36:17 -0700 |
commit | a4aa7c62177ec333b91e186b10abff3bbb573077 (patch) | |
tree | 642824f72830ce14e590da799ba2bdf5c25173b4 | |
parent | 7d41e97fa964534e2bed3cd4f9003c261f88484f (diff) |
Fixed a few compilation warnings
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/Tensor.h | 4 | ||||
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h | 2 | ||||
-rw-r--r-- | unsupported/test/cxx11_meta.cpp | 4 |
3 files changed, 3 insertions, 7 deletions
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<Tensor<Scalar_, NumIndices_, Options_, IndexTyp EIGEN_DEVICE_FUNC void resize(const Sizes<Indices...>& dimensions) { array<Index, NumIndices> 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<Tensor<Scalar_, NumIndices_, Options_, IndexTyp EIGEN_DEVICE_FUNC void resize(const Sizes<V1, V2, V3, V4, V5>& dimensions) { array<Index, NumIndices> 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<typename Index, std::size_t Rank> struct array_size<const DimensionList template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(DimensionList<Index, Rank>&) { return n; } -template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(const DimensionList<Index, Rank>&a) { +template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(const DimensionList<Index, Rank>&) { 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; - */ |