Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMP: Uninitialized in GetNumberOfComponentsPerPixel #62

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

thewtex
Copy link
Contributor

@thewtex thewtex commented Apr 1, 2024

Addresses:

In file included from
/Users/matt.mccormick/src/ITK/Modules/External/ITKRLEImage/test/itkRLEImageTest.cxx:19:
/Users/matt.mccormick/src/ITK/Modules/External/ITKRLEImage/include/itkRLEImage.h:214:53:
warning: variable 'p' is uninitialized when passed as a const reference
argument here [-Wuninitialized-const-reference]
    return itk::NumericTraits<PixelType>::GetLength(p);

on macOS clang.

Addresses:

```
In file included from
/Users/matt.mccormick/src/ITK/Modules/External/ITKRLEImage/test/itkRLEImageTest.cxx:19:
/Users/matt.mccormick/src/ITK/Modules/External/ITKRLEImage/include/itkRLEImage.h:214:53:
warning: variable 'p' is uninitialized when passed as a const reference
argument here [-Wuninitialized-const-reference]
    return itk::NumericTraits<PixelType>::GetLength(p);
```

on macOS clang.
@thewtex thewtex requested a review from dzenanz April 1, 2024 18:46
@dzenanz dzenanz merged commit 5ce8cd1 into KitwareMedical:master Apr 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants