From a776f1ddf404b4df3a200a353416da67690b2234 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 23 May 2011 14:23:39 +0000 Subject: [PATCH] add additional braces to avoid compiler warnings [[Imported from SVN: r7301]] --- test/localgeodesicfefunctiontest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/localgeodesicfefunctiontest.cc b/test/localgeodesicfefunctiontest.cc index 1016ae59..f558b96c 100644 --- a/test/localgeodesicfefunctiontest.cc +++ b/test/localgeodesicfefunctiontest.cc @@ -261,7 +261,7 @@ void testUnitVector2d() for (int i=0; i<numIndices; i++, ++index) { for (int j=0; j<domainDim+1; j++) { - Dune::array<double,2> w = {testPoints[index[j]][0], testPoints[index[j]][1]}; + Dune::array<double,2> w = {{testPoints[index[j]][0], testPoints[index[j]][1]}}; corners[j] = UnitVector<2>(w); } @@ -305,7 +305,7 @@ void testUnitVector3d() for (int i=0; i<numIndices; i++, ++index) { for (int j=0; j<domainDim+1; j++) { - Dune::array<double,3> w = {testPoints[index[j]][0], testPoints[index[j]][1], testPoints[index[j]][2]}; + Dune::array<double,3> w = {{testPoints[index[j]][0], testPoints[index[j]][1], testPoints[index[j]][2]}}; corners[j] = UnitVector<3>(w); } -- GitLab