From e9b12cc1f714949e3dbc5587950ff29570aef588 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 12 Apr 2016 20:53:18 -0700 Subject: [PATCH] Fixed compilation warnings generated by clang --- unsupported/test/cxx11_tensor_math.cpp | 4 ++-- unsupported/test/cxx11_tensor_mixed_indices.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unsupported/test/cxx11_tensor_math.cpp b/unsupported/test/cxx11_tensor_math.cpp index d247bebaa..61c742a16 100644 --- a/unsupported/test/cxx11_tensor_math.cpp +++ b/unsupported/test/cxx11_tensor_math.cpp @@ -16,7 +16,7 @@ using Eigen::RowMajor; static void test_tanh() { - Tensor vec1({6}); + Tensor vec1(6); vec1.setRandom(); Tensor vec2 = vec1.tanh(); @@ -28,7 +28,7 @@ static void test_tanh() static void test_sigmoid() { - Tensor vec1({6}); + Tensor vec1(6); vec1.setRandom(); Tensor vec2 = vec1.sigmoid(); diff --git a/unsupported/test/cxx11_tensor_mixed_indices.cpp b/unsupported/test/cxx11_tensor_mixed_indices.cpp index 72f826216..4fba6fdd1 100644 --- a/unsupported/test/cxx11_tensor_mixed_indices.cpp +++ b/unsupported/test/cxx11_tensor_mixed_indices.cpp @@ -14,8 +14,8 @@ static void test_simple() { - Tensor vec1({6}); - Tensor vec2({6}); + Tensor vec1(6); + Tensor vec2(6); vec1(0) = 4.0; vec2(0) = 0.0; vec1(1) = 8.0; vec2(1) = 1.0;