summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Husted <sigstop@gmail.com>2021-06-05 02:15:22 -0700
committerJustin Husted <sigstop@gmail.com>2021-06-05 02:15:22 -0700
commitf6d87e9a87859dbf9b15269d4de165cf3aadf661 (patch)
treedce0093eb77645db87041c30e789cdca10d0d660
parent0335d55043078a48d8b2110ad79d0661070832ff (diff)
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>
-rw-r--r--linux/six.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/six.c b/linux/six.c
index fca12087..68295914 100644
--- a/linux/six.c
+++ b/linux/six.c
@@ -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;