Skip to content

Commit

Permalink
COMP: Fix missing initialization braces warning
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jhlegarreta authored and dzenanz committed Jan 15, 2022
1 parent 109047a commit 98bc614
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ itkDisplacementFieldJacobianDeterminantFilterTest(int, char *[])
filter->Print(std::cout);

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

Expand Down

0 comments on commit 98bc614

Please sign in to comment.