Skip to content

Fix auto_init_recursive_mutex definition for C++ #875

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

Merged
merged 3 commits into from
Jun 20, 2022

Conversation

earlephilhower
Copy link
Contributor

When compiling in C++, the definition of auto_init_recursive_mutex fails due to the way nested structures are initialized.

Explicitly initialize the nested structures (and add default values to other fields to avoid uninitialized element warnings).

This change builds fine on both C and C++ and fixes #874 .

@kilograham kilograham added this to the 1.3.2 milestone Jun 20, 2022
@kilograham kilograham merged commit 4c49427 into raspberrypi:develop Jun 20, 2022
@earlephilhower earlephilhower deleted the fixauto branch June 20, 2022 17:48
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