From 09ea3a7acdfa1d382de7264b080921205087ce57 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 29 Oct 2015 16:22:52 -0700 Subject: [PATCH] Silenced a few more compilation warnings --- unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h | 2 +- unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h b/unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h index 96a7d5c20..7cd04a99e 100644 --- a/unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h +++ b/unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h @@ -354,7 +354,7 @@ struct h_array_reduce template struct h_array_reduce { - constexpr static inline T run(const std::array& arr, T identity) + constexpr static inline T run(const std::array&, T identity) { return identity; } diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h index 62f5ff923..10def5349 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h @@ -219,8 +219,8 @@ struct TensorEvaluator, D ComplexScalar* pos_j_base_powered = is_power_of_two ? NULL : (ComplexScalar*)m_device.allocate(sizeof(ComplexScalar) * (line_len + 1)); if (!is_power_of_two) { ComplexScalar pos_j_base = ComplexScalar(std::cos(M_PI/line_len), std::sin(M_PI/line_len)); - for (int i = 0; i < line_len + 1; ++i) { - pos_j_base_powered[i] = std::pow(pos_j_base, i * i); + for (int j = 0; j < line_len + 1; ++j) { + pos_j_base_powered[j] = std::pow(pos_j_base, j * j); } }