Skip to content

COMP: Fix missing initialization braces warning#2748

Merged
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:FixInitializationBracesWarning
Sep 22, 2021
Merged

COMP: Fix missing initialization braces warning#2748
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:FixInitializationBracesWarning

Conversation

@jhlegarreta
Copy link
Copy Markdown
Member

Fix missing initialization braces warning.

Fixes:

[CTest: warning matched]
/Users/builder/externalModules/Filtering/ImageFeature/test/itkLaplacianImageFilterTest.cxx:62:35:
warning: suggest braces around initialization of subobject [-Wmissing-braces]
  itk::Vector<float, 2> spacing({ 0.5, 5.0 });
                                  ^~~~~~~~
                                  {       }
[CTest: warning suppressed] 1 warning generated.

reported at:
https://open.cdash.org/viewBuildError.php?type=1&buildid=7468732

PR Checklist

@github-actions github-actions Bot added area:Filtering Issues affecting the Filtering module type:Compiler Compiler support or related warnings type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct labels Sep 21, 2021
@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Sep 21, 2021

Unfortunately, this turns a warning into an error 😞

Comment thread Modules/Filtering/ImageFeature/test/itkLaplacianImageFilterTest.cxx Outdated
@jhlegarreta jhlegarreta force-pushed the FixInitializationBracesWarning branch from a11c8dd to a68c856 Compare September 22, 2021 00:15
Fix missing initialization braces warning.

Fixes:
```
[CTest: warning matched]
/Users/builder/externalModules/Filtering/ImageFeature/test/itkLaplacianImageFilterTest.cxx:62:35:
warning: suggest braces around initialization of subobject [-Wmissing-braces]
  itk::Vector<float, 2> spacing({ 0.5, 5.0 });
                                  ^~~~~~~~
                                  {       }
[CTest: warning suppressed] 1 warning generated.
```

reported at:
https://open.cdash.org/viewBuildError.php?type=1&buildid=7468732
@jhlegarreta jhlegarreta force-pushed the FixInitializationBracesWarning branch from a68c856 to 9739170 Compare September 22, 2021 00:36
@dzenanz dzenanz merged commit c7641fc into InsightSoftwareConsortium:master Sep 22, 2021
@jhlegarreta jhlegarreta deleted the FixInitializationBracesWarning branch September 22, 2021 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Filtering Issues affecting the Filtering module type:Compiler Compiler support or related warnings type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants