diff options
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h | 20 | ||||
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h | 4 |
2 files changed, 12 insertions, 12 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; } }; diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h index f31db652d..3b3955094 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h @@ -66,8 +66,8 @@ template <typename OutputDims> struct DimInitializer { template <> struct DimInitializer<Sizes<1> > { template <typename InputDims, typename Index, size_t Rank> EIGEN_DEVICE_FUNC - static void run(const InputDims& input_dims, const array<bool, Rank>& reduced, - Sizes<1>* output_dims, array<Index, Rank>* reduced_dims) { + static void run(const InputDims& input_dims, const array<bool, Rank>&, + Sizes<1>*, array<Index, Rank>* reduced_dims) { const int NumInputDims = internal::array_size<InputDims>::value; for (int i = 0; i < NumInputDims; ++i) { (*reduced_dims)[i] = input_dims[i]; |