Skip to content

Commit

Permalink
pw_sync_zephyr: Resolve too many initializers for 'k_spinlock'
Browse files Browse the repository at this point in the history
Fix compile error when using picolibc toolchain

Change-Id: Id17c397beff2d2d8ff3807029d1358da578a2789
Signed-off-by: Al Semjonovs <[email protected]>
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/152931
Presubmit-Verified: CQ Bot Account <[email protected]>
Reviewed-by: Carlos Chinchilla <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
  • Loading branch information
asemjonovs authored and CQ Bot Account committed Jun 23, 2023
1 parent 8e74810 commit 644f268
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace pw::sync {

constexpr InterruptSpinLock::InterruptSpinLock()
: native_type_{.lock = {0}, .locked = false, .key = {0}} {}
: native_type_{.lock = {}, .locked = false, .key = {0}} {}

inline bool InterruptSpinLock::try_lock() {
// This backend will spin the current processor until the deadlock is
Expand Down

0 comments on commit 644f268

Please sign in to comment.