Skip to content

Commit

Permalink
COMP: fix WorkUnitInfo shadow warning
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
blowekamp committed Nov 22, 2021
1 parent fa9f628 commit 68c607e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Modules/Core/Common/src/itkMultiThreaderBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<WorkUnitInfo *>(arg);
auto * workUnitInfo = static_cast<MultiThreaderBase::WorkUnitInfo *>(arg);
ThreadIdType workUnitID = workUnitInfo->WorkUnitID;
ThreadIdType workUnitCount = workUnitInfo->NumberOfWorkUnits;
auto * acParams = static_cast<struct ArrayCallback *>(workUnitInfo->UserData);
Expand Down Expand Up @@ -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<WorkUnitInfo *>(arg);
auto * workUnitInfo = static_cast<MultiThreaderBase::WorkUnitInfo *>(arg);
ThreadIdType workUnitID = workUnitInfo->WorkUnitID;
ThreadIdType workUnitCount = workUnitInfo->NumberOfWorkUnits;
auto * rnc = static_cast<struct RegionAndCallback *>(workUnitInfo->UserData);
Expand Down

0 comments on commit 68c607e

Please sign in to comment.