From 7d41e97fa964534e2bed3cd4f9003c261f88484f Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Mon, 29 Jun 2015 14:47:40 -0700 Subject: [PATCH] Silenced a number of compilation warnings --- .../CXX11/src/Tensor/TensorDimensionList.h | 20 +++++++++---------- .../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 struct array_size const Index array_get(DimensionList& a) { +template const Index array_get(DimensionList&) { return n; } -template const Index array_get(const DimensionList& a) { +template const Index array_get(const DimensionList&a) { return n; } @@ -177,52 +177,52 @@ struct indices_statically_known_to_increase > { template struct index_statically_eq > { - 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 struct index_statically_eq > { - 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 struct index_statically_ne > { - 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 struct index_statically_ne > { - 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 struct index_statically_gt > { - 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 struct index_statically_gt > { - 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 struct index_statically_lt > { - 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 struct index_statically_lt > { - 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 struct DimInitializer { template <> struct DimInitializer > { template EIGEN_DEVICE_FUNC - static void run(const InputDims& input_dims, const array& reduced, - Sizes<1>* output_dims, array* reduced_dims) { + static void run(const InputDims& input_dims, const array&, + Sizes<1>*, array* reduced_dims) { const int NumInputDims = internal::array_size::value; for (int i = 0; i < NumInputDims; ++i) { (*reduced_dims)[i] = input_dims[i];