From 590f4b0aa3583c98fe9a0682e26c24ebfaffeaa6 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 30 Jan 2015 19:46:30 -0800 Subject: Silenced some compilation warnings --- .../Eigen/CXX11/src/Tensor/TensorIndexList.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h index 7ff47673d..c94ed977e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h @@ -124,18 +124,18 @@ struct tuple_coeff<0> { update_value(std::get<0>(t), value); } template - static constexpr bool value_known_statically(const DenseIndex i, const std::tuple& t) { + static constexpr bool value_known_statically(const DenseIndex i, const std::tuple&) { // eigen_assert (i == 0); // gcc fails to compile assertions in constexpr return is_compile_time_constant >::type>::value & (i == 0); } template - static constexpr bool values_up_to_known_statically(const std::tuple& t) { + static constexpr bool values_up_to_known_statically(const std::tuple&) { return is_compile_time_constant >::type>::value; } template - static constexpr bool values_up_to_statically_known_to_increase(const std::tuple& t) { + static constexpr bool values_up_to_statically_known_to_increase(const std::tuple&) { return true; } }; @@ -271,7 +271,7 @@ template struct index_statically_eq > { constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { return IndexList().value_known_statically(i) & - IndexList()[i] == value; + (IndexList()[i] == value); } }; @@ -279,7 +279,7 @@ template struct index_statically_eq > { constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { return IndexList().value_known_statically(i) & - IndexList()[i] == value; + (IndexList()[i] == value); } }; @@ -294,7 +294,7 @@ template struct index_statically_ne > { constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { return IndexList().value_known_statically(i) & - IndexList()[i] != value; + (IndexList()[i] != value); } }; @@ -302,7 +302,7 @@ template struct index_statically_ne > { constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { return IndexList().value_known_statically(i) & - IndexList()[i] != value; + (IndexList()[i] != value); } }; @@ -318,7 +318,7 @@ template struct index_statically_gt > { constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { return IndexList().value_known_statically(i) & - IndexList()[i] > value; + (IndexList()[i] > value); } }; @@ -326,7 +326,7 @@ template struct index_statically_gt > { constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { return IndexList().value_known_statically(i) & - IndexList()[i] > value; + (IndexList()[i] > value); } }; @@ -341,7 +341,7 @@ template struct index_statically_lt > { constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { return IndexList().value_known_statically(i) & - IndexList()[i] < value; + (IndexList()[i] < value); } }; @@ -349,7 +349,7 @@ template struct index_statically_lt > { constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { return IndexList().value_known_statically(i) & - IndexList()[i] < value; + (IndexList()[i] < value); } }; -- cgit v1.2.3