From 68c607ed54d646a67df7569a9d5f48e4b516e9d8 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Mon, 22 Nov 2021 21:37:07 +0000 Subject: [PATCH] COMP: fix WorkUnitInfo shadow warning Addresses the following compilation warnings with GNU 8.3.0: ITK/Modules/Core/Common/src/itkMultiThreaderBase.cxx:513:55: warning: declaration of 'using WorkUnitInfo = struct itk::MultiThreaderBase::WorkUnitInfo' shadows a previous local [-Wshadow] ITK/Modules/Core/Common/src/itkMultiThreaderBase.cxx:568:55: warning: declaration of 'using WorkUnitInfo = struct itk::MultiThreaderBase::WorkUnitInfo' shadows a previous local [-Wshadow] --- Modules/Core/Common/src/itkMultiThreaderBase.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Modules/Core/Common/src/itkMultiThreaderBase.cxx b/Modules/Core/Common/src/itkMultiThreaderBase.cxx index 124ca51e179..34bfbb60f29 100644 --- a/Modules/Core/Common/src/itkMultiThreaderBase.cxx +++ b/Modules/Core/Common/src/itkMultiThreaderBase.cxx @@ -510,8 +510,7 @@ MultiThreaderBase::ParallelizeArray(SizeValueType firstIndex, ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION MultiThreaderBase::ParallelizeArrayHelper(void * arg) { - using WorkUnitInfo = MultiThreaderBase::WorkUnitInfo; - auto * workUnitInfo = static_cast(arg); + auto * workUnitInfo = static_cast(arg); ThreadIdType workUnitID = workUnitInfo->WorkUnitID; ThreadIdType workUnitCount = workUnitInfo->NumberOfWorkUnits; auto * acParams = static_cast(workUnitInfo->UserData); @@ -565,8 +564,7 @@ MultiThreaderBase::ParallelizeImageRegion(unsigned int ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION MultiThreaderBase::ParallelizeImageRegionHelper(void * arg) { - using WorkUnitInfo = MultiThreaderBase::WorkUnitInfo; - auto * workUnitInfo = static_cast(arg); + auto * workUnitInfo = static_cast(arg); ThreadIdType workUnitID = workUnitInfo->WorkUnitID; ThreadIdType workUnitCount = workUnitInfo->NumberOfWorkUnits; auto * rnc = static_cast(workUnitInfo->UserData);