From fc26b6f6a2bf6c034bb9eb50b0436c7541066731 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Thu, 23 Apr 2026 11:27:49 +0000 Subject: [PATCH] COMP: Drop unused InputPixelType typedefs in CopyIterationBenchmark MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CopyRegionIterator and CopyScanlineIterator (examples/Core/itkCopyIterationBenchmark.cxx) each declared a local `using InputPixelType = typename TInputImage::PixelType;` that was never referenced — the loop bodies cast directly via `static_cast(inputIt.Get())`, so InputPixelType is dead. Triggers -Wunused-local-typedefs at lines 119 and 142 under gcc. Remove the two unused typedefs; the other two functions in this file (CopyImageRegionRange, and the * / * typed-copy variant at line 187) legitimately use both InputPixelType and OutputPixelType and are left unchanged. --- examples/Core/itkCopyIterationBenchmark.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/Core/itkCopyIterationBenchmark.cxx b/examples/Core/itkCopyIterationBenchmark.cxx index c0f4d6b..7db632c 100644 --- a/examples/Core/itkCopyIterationBenchmark.cxx +++ b/examples/Core/itkCopyIterationBenchmark.cxx @@ -116,7 +116,6 @@ template void CopyRegionIterator(const TInputImage * inputPtr, TOutputImage * outputPtr) { - using InputPixelType = typename TInputImage::PixelType; using OutputPixelType = typename TOutputImage::PixelType; using ImageRegionConstIterator = itk::ImageRegionConstIterator; using ImageRegionIterator = itk::ImageRegionIterator; @@ -139,7 +138,6 @@ template void CopyScanlineIterator(const TInputImage * inputPtr, TOutputImage * outputPtr) { - using InputPixelType = typename TInputImage::PixelType; using OutputPixelType = typename TOutputImage::PixelType; using ImageScanlineConstIterator = itk::ImageScanlineConstIterator; using ImageScanlineIterator = itk::ImageScanlineIterator;