Skip to content

Commit 98bc614

Browse files
jhlegarretadzenanz
authored andcommitted
COMP: Fix missing initialization braces warning
Fix missing initialization braces warning. Fixes: ``` [CTest: warning matched] /Users/builder/externalModules/Filtering/DisplacementField/test/itkDisplacementFieldJacobianDeterminantFilterTest.cxx:169:49: warning: suggest braces around initialization of subobject [-Wmissing-braces] typename FilterType::WeightsType weights{ { 1.0, 2.0, 3.0 } }; ^~~~~~~~~~~~~ { } ``` Raised for example in: https://open.cdash.org/viewBuildError.php?type=1&buildid=7679172
1 parent 109047a commit 98bc614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Filtering/DisplacementField/test/itkDisplacementFieldJacobianDeterminantFilterTest.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ itkDisplacementFieldJacobianDeterminantFilterTest(int, char *[])
166166
filter->Print(std::cout);
167167

168168
// Run the test again with specified weights
169-
typename FilterType::WeightsType weights{ { 1.0, 2.0, 3.0 } };
169+
typename FilterType::WeightsType weights{ { { 1.0, 2.0, 3.0 } } };
170170
filter->SetDerivativeWeights(weights);
171171
ITK_TEST_SET_GET_VALUE(weights, filter->GetDerivativeWeights());
172172

0 commit comments

Comments
 (0)