Fix auto_init_recursive_mutex definition for C++ #875

Merged
earlephilhower merged 3 commits from fixauto into develop 2022-06-20 12:47:46 -05:00
earlephilhower commented 2022-06-20 11:45:05 -05:00 (Migrated from github.com)

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 .

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 (Migrated from github.com) approved these changes 2022-06-20 12:47:31 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!875
No description provided.