diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-06-29 14:47:40 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-06-29 14:47:40 -0700 |
commit | 7d41e97fa964534e2bed3cd4f9003c261f88484f (patch) | |
tree | b36c6995635eec125a7dc7a9e4d4c830b8a4d54a /unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h | |
parent | fffe63045cb48da3fd3ff0e5e8b7ab4180db8f64 (diff) |
Silenced a number of compilation warnings
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h index 19e922f92..61750847e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h @@ -35,10 +35,10 @@ template<typename Index, std::size_t Rank> struct array_size<const DimensionList static const size_t value = Rank; }; -template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(DimensionList<Index, Rank>& a) { +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>&a) { return n; } @@ -177,52 +177,52 @@ struct indices_statically_known_to_increase<const DimensionList<Index, Rank> > { template <typename Index, std::size_t Rank> struct index_statically_eq<DimensionList<Index, Rank> > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const { + EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { return false; } }; template <typename Index, std::size_t Rank> struct index_statically_eq<const DimensionList<Index, Rank> > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const { + EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { return false; } }; template <typename Index, std::size_t Rank> struct index_statically_ne<DimensionList<Index, Rank> > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const { + EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { return false; } }; template <typename Index, std::size_t Rank> struct index_statically_ne<const DimensionList<Index, Rank> > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const { + EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { return false; } }; template <typename Index, std::size_t Rank> struct index_statically_gt<DimensionList<Index, Rank> > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const { + EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { return false; } }; template <typename Index, std::size_t Rank> struct index_statically_gt<const DimensionList<Index, Rank> > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const { + EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { return false; } }; template <typename Index, std::size_t Rank> struct index_statically_lt<DimensionList<Index, Rank> > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const { + EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { return false; } }; template <typename Index, std::size_t Rank> struct index_statically_lt<const DimensionList<Index, Rank> > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const { + EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { return false; } }; |