Skip to content
Snippets Groups Projects
Commit a776f1dd authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

add additional braces to avoid compiler warnings

[[Imported from SVN: r7301]]
parent 4b865623
No related branches found
No related tags found
No related merge requests found
...@@ -261,7 +261,7 @@ void testUnitVector2d() ...@@ -261,7 +261,7 @@ void testUnitVector2d()
for (int i=0; i<numIndices; i++, ++index) { for (int i=0; i<numIndices; i++, ++index) {
for (int j=0; j<domainDim+1; j++) { 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); corners[j] = UnitVector<2>(w);
} }
...@@ -305,7 +305,7 @@ void testUnitVector3d() ...@@ -305,7 +305,7 @@ void testUnitVector3d()
for (int i=0; i<numIndices; i++, ++index) { for (int i=0; i<numIndices; i++, ++index) {
for (int j=0; j<domainDim+1; j++) { 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); corners[j] = UnitVector<3>(w);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment