Skip to content

Conversation

@keith-packard
Copy link
Contributor

When -ffreestanding is not enabled (as when building with picolibc), and GCC is able to use it's knowledge of memset semantics, it sometimes gets it wrong, as in this case. I'm not quite sure what is confusing it here, but the code sure looks correct.

Signed-off-by: Keith Packard [email protected]

Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise, some other compilers complain.

…able

When -ffreestanding is not enabled, and GCC is able to use it's
knowledge of memset semantics, it sometimes gets it wrong, as in this
case. I'm not quite sure what is confusing it here, but the code sure
looks correct.

Signed-off-by: Keith Packard <[email protected]>
@keith-packard keith-packard force-pushed the ignore-maybe-uninitialized branch from 2187774 to 938677a Compare November 2, 2022 19:37
@stephanosio
Copy link
Member

@dleach02 Could you please take a look?

@stephanosio
Copy link
Member

@dleach02 ping

@stephanosio
Copy link
Member

It would be great if we could get another +1 here.

@stephanosio stephanosio merged commit d1e61c0 into zephyrproject-rtos:master Apr 18, 2023
@keith-packard keith-packard deleted the ignore-maybe-uninitialized branch April 18, 2023 19:42
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