Skip to content

Fix variable shadowing warning in GCC #1221

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
Jan 13, 2025

Conversation

creiter64
Copy link
Contributor

Fix variable shadowing warning in GCC

Description

The function vApplicationFPUSafeIRQHandler gets the value of ICCIAR as parameter, but a constant containing the address of ICCIAR was also defined. Fix the name of the constant to align it with what it actually holds.

Test Steps

I have a build of FreeRTOS with variable shadowing warnings enabled, before the PR it produces a warning, afterwards it doesn't.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The function vApplicationFPUSafeIRQHandler gets the value of ICCIAR as
parameter, but a constant containing the address of ICCIAR was also
defined. Fix the name of the constant to align it with what it actually
holds.
@creiter64 creiter64 requested a review from a team as a code owner January 13, 2025 15:37
Copy link

@kstribrnAmzn
Copy link
Member

Thanks for raising this pr! Looks like a good improvement to avoid any future errors

@kstribrnAmzn kstribrnAmzn merged commit c38427e into FreeRTOS:main Jan 13, 2025
17 checks passed
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.

3 participants