Skip to content
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

[Backport v3.3-branch] cmake: prefix local version of return variable #55528

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Mar 7, 2023

Backport 599886a from #55516

Fixes #55490

Fixes: #55490
Follow-up: #53124

Prefix local version of the return variable before calling
`zephyr_check_compiler_flag_hardcoded()`.

This ensures that there will never be any naming collision between named
return argument and the variable name used in later functions when
PARENT_SCOPE is used.

The issue #55490 provided description of situation where the double
de-referencing was not working correctly.

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 599886a)
@nashif nashif merged commit 3c7aadc into v3.3-branch Mar 28, 2023
@galak galak deleted the backport-55516-to-v3.3-branch branch April 19, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants