From 772080a5d84750d2a3ac9b576eba7a44a98d0e41 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Mon, 6 Feb 2023 02:23:56 -0800 Subject: [PATCH] cpu: explicitely initialize the atomic_uint with a negative value This is the same value used to compare from fd7857126a2a59bda6ad930461b61fff1114b9d4 --- src/misc/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/cpu.c b/src/misc/cpu.c index c12d7d44fa..07ec825086 100644 --- a/src/misc/cpu.c +++ b/src/misc/cpu.c @@ -191,7 +191,7 @@ out: unsigned vlc_CPU(void) { - static atomic_uint cpu_flags = ATOMIC_VAR_INIT(-1); + static atomic_uint cpu_flags = ATOMIC_VAR_INIT(-1U); unsigned flags = atomic_load_explicit(&cpu_flags, memory_order_relaxed); if (unlikely(flags == -1U)) {