Skip to content

COMP: Fix -Wshadow warnings on local samplenr variable #1111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2024

Conversation

N-Dekker
Copy link
Member

@N-Dekker N-Dekker commented May 7, 2024

Fixed GCC/ubuntu "warning: declaration of 'samplenr' shadows a previous local [-Wshadow]", by moving one local samplenr variable beyond the other.

Fixed GCC/ubuntu "warning: declaration of 'samplenr' shadows a previous local [-Wshadow]", by moving one local `samplenr` variable beyond the other.
@N-Dekker N-Dekker merged commit c50775a into main May 7, 2024
7 of 8 checks passed
@N-Dekker N-Dekker deleted the Wshadow-samplenr branch May 7, 2024 13:38
N-Dekker added a commit that referenced this pull request May 7, 2024
This particular `samplenr` variable was only used as argument for commented-out `progressObserver->UpdateAndPrintProgress` calls.

Those `progressObserver->UpdateAndPrintProgress` calls were already commented-out with commit e9de4b1 (May 25, 2016):
https://github.com/SuperElastix/elastix/blob/e9de4b1281a07d2fdbaa96db865f3c7aaaf4e5d2/src/Common/itkComputeJacobianTerms.hxx#L235-L236

Follow-up to pull request #1111 "COMP: Fix `-Wshadow` warnings on local `samplenr` variable"
N-Dekker added a commit that referenced this pull request Jun 13, 2024
This particular `samplenr` variable was only used as argument for commented-out `progressObserver->UpdateAndPrintProgress` calls.

Those `progressObserver->UpdateAndPrintProgress` calls were already commented-out with commit e9de4b1 (May 25, 2016):
https://github.com/SuperElastix/elastix/blob/e9de4b1281a07d2fdbaa96db865f3c7aaaf4e5d2/src/Common/itkComputeJacobianTerms.hxx#L235-L236

Follow-up to pull request #1111 "COMP: Fix `-Wshadow` warnings on local `samplenr` variable"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant