mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
Work around build error with gcc <10
linux/six.c: In function ‘__six_lock_type_slowpath’: linux/six.c:73:6: error: ‘old.<U81c8>.v’ may be used uninitialized in this function [-Werror=maybe-uninitialized] Signed-off-by: Justin Husted <sigstop@gmail.com>
This commit is contained in:
parent
0335d55043
commit
f6d87e9a87
@ -139,7 +139,7 @@ static __always_inline bool do_six_trylock_type(struct six_lock *lock,
|
||||
bool try)
|
||||
{
|
||||
const struct six_lock_vals l[] = LOCK_VALS;
|
||||
union six_lock_state old, new;
|
||||
union six_lock_state old = {0}, new;
|
||||
bool ret;
|
||||
u64 v;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user