Skip to content

Conversation

zephyrbot
Copy link

@zephyrbot zephyrbot commented Aug 30, 2022

Backport bde270b from #48458

Fixes #49658

This commit sets an initial value of 0 for the `res` variable, whose
pointer is passed to other functions and is not directly assigned
within the calling function.

Note that, when the test completes successfully, the value of the `res`
variable should be set to `423` (the value of `set_res`).

This fixes the "‘res’ may be used uninitialized" warning generated by
the GCC 12.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
(cherry picked from commit bde270b)
@zephyrbot zephyrbot requested a review from nashif as a code owner August 30, 2022 06:00
@github-actions github-actions bot added the area: Tests Issues related to a particular existing or missing test label Aug 30, 2022
@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Oct 30, 2022
@stephanosio
Copy link
Member

Closing since these build warnings are only seen with Zephyr SDK 0.15.0 and Zephyr v3.1 is not supposed to be compatible with it: see #49658 (comment)

@stephanosio stephanosio closed this Nov 1, 2022
@nashif nashif deleted the backport-48458-to-v3.1-branch branch April 6, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Tests Issues related to a particular existing or missing test Stale

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants