From 6799c26cd6d5aba6223de287e7ea7e024c9b8eb1 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 17 Jul 2015 16:50:47 -0700 Subject: [PATCH] Fixed a typo in a test and a compilation warning --- unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h | 2 +- unsupported/test/cxx11_tensor_dimension.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h index 2b5de4f55..52f3ad76e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h @@ -403,7 +403,7 @@ template struct sizes_match_up_to_dim { - static inline bool run(Dims1& dims1, Dims2& dims2) { + static inline bool run(Dims1&, Dims2&) { return false; } }; diff --git a/unsupported/test/cxx11_tensor_dimension.cpp b/unsupported/test/cxx11_tensor_dimension.cpp index 22c58450c..ce78efe52 100644 --- a/unsupported/test/cxx11_tensor_dimension.cpp +++ b/unsupported/test/cxx11_tensor_dimension.cpp @@ -46,7 +46,7 @@ static void test_match() Eigen::DSizes dyn1(2,3,7); Eigen::DSizes dyn2(2,3); - VERIFY_IS_EQUAL(Eigen::dimensions_match(dyn, stat), false); + VERIFY_IS_EQUAL(Eigen::dimensions_match(dyn1, dyn2), false); }