Skip to content

Commit

Permalink
COMP: Fix missing initialization braces warnings
Browse files Browse the repository at this point in the history
Fix missing initialization braces warnings.

Fixes:
```
[CTest: warning matched]
Modules/Filtering/Convolution/include/itkFFTConvolutionImageFilter.h:211:36:
warning: suggest braces around initialization of subobject [-Wmissing-braces]
  InternalSizeType   m_FFTPadSize{ 0 };
                                   ^
                                   {}
```

and warnings of the same kind reported at:
https://open.cdash.org/viewBuildError.php?type=1&buildid=8365102
  • Loading branch information
jhlegarreta committed Dec 29, 2022
1 parent dcc8ea3 commit 5834520
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -208,7 +208,7 @@ class ITK_TEMPLATE_EXPORT FFTConvolutionImageFilter

private:
SizeValueType m_SizeGreatestPrimeFactor;
InternalSizeType m_FFTPadSize{ 0 };
InternalSizeType m_FFTPadSize{ { 0 } };
InternalRegionType m_PaddedInputRegion;
};
} // namespace itk
Expand Down
Expand Up @@ -32,7 +32,7 @@ GenerateGaussianKernelForSubregionTest()
using SourceType = itk::GaussianImageSource<KernelImageType>;
using KernelSizeType = typename SourceType::SizeType;
auto source = SourceType::New();
KernelSizeType kernelSize{ 3, 5 };
KernelSizeType kernelSize{ { 3, 5 } };
source->SetSize(kernelSize);
source->SetMean(2);
source->SetSigma(3.0);
Expand Down
Expand Up @@ -238,7 +238,7 @@ itkANTSNeighborhoodCorrelationImageToImageMetricv4Test(int, char ** const)
using MetricTypePointer = MetricType::Pointer;
MetricTypePointer metric = MetricType::New();

const itk::Size<ImageDimension> neighborhoodRadius0{ 1 };
const itk::Size<ImageDimension> neighborhoodRadius0{ { 1 } };

metric->SetRadius(neighborhoodRadius0);
ITK_TEST_SET_GET_VALUE(neighborhoodRadius0, metric->GetRadius());
Expand Down

0 comments on commit 5834520

Please sign in to comment.