From f6d87e9a87859dbf9b15269d4de165cf3aadf661 Mon Sep 17 00:00:00 2001 From: Justin Husted Date: Sat, 5 Jun 2021 02:15:22 -0700 Subject: [PATCH] Work around build error with gcc <10 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit linux/six.c: In function ‘__six_lock_type_slowpath’: linux/six.c:73:6: error: ‘old..v’ may be used uninitialized in this function [-Werror=maybe-uninitialized] Signed-off-by: Justin Husted --- linux/six.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/six.c b/linux/six.c index fca1208..6829591 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; -- 2.39.2