Skip to content

STYLE: Remove unused local ImageRegion variables#4345

Merged
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
N-Dekker:Remove-unused-ImageRegion-variables
Nov 28, 2023
Merged

STYLE: Remove unused local ImageRegion variables#4345
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
N-Dekker:Remove-unused-ImageRegion-variables

Conversation

@N-Dekker
Copy link
Copy Markdown
Contributor

Fixed ITK.macOS/Darwin/Xcode_13.2.1/clang-1300.0.29.30 warnings that appear when ImageRegion is made trivially copyable, saying:

warning: unused variable 'region' [-Wunused-variable]

Removed an obsolete type alias from itkResampleImageTest8.cxx, to avoid a warning, saying:

warning: unused type alias 'OutputImageRegionType' [-Wunused-local-typedef]


This is in fact a "spin-off" (by-product) of pull request #4344: The "unused variable" warnings only appeared after making ImageRegion trivially copyable.

Fixed ITK.macOS/Darwin/Xcode_13.2.1/clang-1300.0.29.30 warnings that appear when
`ImageRegion` is made trivially copyable, saying:

> warning: unused variable 'region' [-Wunused-variable]

Removed an obsolete type alias from itkResampleImageTest8.cxx, to avoid a
warning, saying:

> warning: unused type alias 'OutputImageRegionType' [-Wunused-local-typedef]
@github-actions github-actions Bot added type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module area:Registration Issues affecting the Registration module area:Segmentation Issues affecting the Segmentation module area:Video Issues affecting the Video module type:Style Style changes: no logic impact (indentation, comments, naming) area:Numerics Issues affecting the Numerics module labels Nov 24, 2023
@N-Dekker N-Dekker marked this pull request as ready for review November 24, 2023 15:40
@N-Dekker
Copy link
Copy Markdown
Contributor Author

I think this PR is ready, but First interaction / build (pull_request_target) fails, saying:

internal/modules/cjs/loader.js:1032
  throw err;
  ^

Error: Cannot find module 'node:assert'

Any clue what to do? Is it a show stopper?

@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Nov 27, 2023

Not a showstopper. Perhaps node needs to be either upgraded or downgraded somewhere?

@dzenanz dzenanz merged commit 1a2e2b3 into InsightSoftwareConsortium:master Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module area:Numerics Issues affecting the Numerics module area:Registration Issues affecting the Registration module area:Segmentation Issues affecting the Segmentation module area:Video Issues affecting the Video module type:Style Style changes: no logic impact (indentation, comments, naming) type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants