Skip to content

Avoid uninitialized variable warnings in gcc#7258

Merged
ethomson merged 6 commits into
mainfrom
ethomson/build
May 11, 2026
Merged

Avoid uninitialized variable warnings in gcc#7258
ethomson merged 6 commits into
mainfrom
ethomson/build

Conversation

@ethomson
Copy link
Copy Markdown
Member

gcc 4.8.5 is showing warnings for uninitialized variables in a handful of spaces. Initialize those variables, even where these are obviously unnecessary.

ethomson added 6 commits May 10, 2026 21:07
gcc thinks this could be uninitialized; make it so.
gcc thinks this could be used uninitialized; cope with this.
`init_common` could return an uninitialized variable when there are no
subsystems; simply return `0` in this case.
gcc thinks this could be used uninitialized; cope with this.
@ethomson ethomson merged commit a7c02c9 into main May 11, 2026
57 checks passed
@ethomson ethomson deleted the ethomson/build branch May 11, 2026 20:21
Copilot AI mentioned this pull request May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant