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/Core/Common/test/itkPointSetToImageFilterTest1.cxx:76:40:
warning: suggest braces around initialization of subobject [-Wmissing-braces]
  BinaryImageType::PointType origin{ { -125, -125 } };
                                       ^~~~~~~~~~
                                       {         }
[CTest: warning suppressed] 1 warning generated.
```

Raised for example in:
https://open.cdash.org/viewBuildError.php?type=1&onlydeltap&buildid=7794978
  • Loading branch information
jhlegarreta authored and N-Dekker committed Mar 16, 2022
1 parent 50592ac commit 1ec5c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Core/Common/test/itkPointSetToImageFilterTest1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ itkPointSetToImageFilterTest1(int argc, char * argv[])
filter->SetSpacing(spacing);
ITK_TEST_SET_GET_VALUE(spacing, filter->GetSpacing());

BinaryImageType::PointType origin{ { -125, -125 } };
BinaryImageType::PointType origin{ { { -125, -125 } } };
filter->SetOrigin(origin);
ITK_TEST_SET_GET_VALUE(origin, filter->GetOrigin());

Expand Down

0 comments on commit 1ec5c22

Please sign in to comment.