Skip to content

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
@sonarqubecloud
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
moninom1 pushed a commit to moninom1/FreeRTOS-Kernel that referenced this pull request Sep 30, 2025
…ead (FreeRTOS#1221)

* Make use of vPortGenerateSimulatedInterruptFromWindowsThread to generate interrupt from windows thread
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