Skip to content

Fix uninitialized member#8094

Merged
stevenfontanella merged 2 commits into
mainfrom
uninitialized-member
Dec 5, 2025
Merged

Fix uninitialized member#8094
stevenfontanella merged 2 commits into
mainfrom
uninitialized-member

Conversation

@stevenfontanella
Copy link
Copy Markdown
Member

@stevenfontanella stevenfontanella commented Dec 5, 2025

std::array is an aggregate type with a C array as a member so its default initialization is garbage. Change it to value initialization to ensure that it has a defined value which removes the need for disabling the warnings and fixes the Alpine CI build.

Copy link
Copy Markdown
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

lgtm if CI passes 😄

@stevenfontanella stevenfontanella enabled auto-merge (squash) December 5, 2025 18:53
@stevenfontanella stevenfontanella merged commit 3ff3762 into main Dec 5, 2025
17 checks passed
@stevenfontanella stevenfontanella deleted the uninitialized-member branch December 5, 2025 19:44
kripken pushed a commit to kripken/binaryen that referenced this pull request Dec 10, 2025
std::array is an aggregate type with a C array as a member so its
default initialization is garbage. Change it to value initialization to
ensure that it has a defined value which removes the need for disabling
the warnings and fixes the Alpine CI build.
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.

2 participants