Skip to content

Commit

Permalink
WIP: fix clang -Wtautological-pointer-compare warnings
Browse files Browse the repository at this point in the history
Warning was:

```
/Modules/Registration/GPUPDEDeformable/include/itkGPUPDEDeformableRegistrationFilter.hxx:102:7: warning: comparison of array 'this->m_GPUSmoothingKernels' not equal to a null pointer is always true [-Wtautological-pointer-compare]
  if (m_GPUSmoothingKernels != nullptr)
      ^~~~~~~~~~~~~~~~~~~~~    ~~~~~~~
```
  • Loading branch information
seanm committed Aug 23, 2024
1 parent 37fca10 commit 0a12a09
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ GPUPDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField
}

os << indent << "SmoothingKernels: ";
if (m_SmoothingKernels != nullptr)
{
for (unsigned d = 0; d < ImageDimension; ++d)
{
Expand All @@ -99,7 +98,6 @@ GPUPDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField
}

os << indent << "GPUSmoothingKernels: ";
if (m_GPUSmoothingKernels != nullptr)
{
for (unsigned d = 0; d < ImageDimension; ++d)
{
Expand All @@ -114,7 +112,6 @@ GPUPDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField
}

os << indent << "UpdateFieldSmoothingKernels: ";
if (m_UpdateFieldSmoothingKernels != nullptr)
{
for (unsigned d = 0; d < ImageDimension; ++d)
{
Expand All @@ -123,7 +120,6 @@ GPUPDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField
}

os << indent << "UpdateFieldGPUSmoothingKernels: ";
if (m_UpdateFieldGPUSmoothingKernels != nullptr)
{
for (unsigned d = 0; d < ImageDimension; ++d)
{
Expand Down

0 comments on commit 0a12a09

Please sign in to comment.