From dc39b4df1a3848569b237db67f39037e0859ec44 Mon Sep 17 00:00:00 2001 From: Chris Thomas Date: Wed, 15 Jul 2026 00:36:05 +0200 Subject: [PATCH] fix: replace removed ATOMIC_VAR_INIT for newer toolchains ATOMIC_VAR_INIT was deprecated and removed in newer C standards / GCC, breaking the build. Initialise the atomic directly instead. --- lib/log/src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log/src/log.c b/lib/log/src/log.c index 4db33c221..e0f4fda0a 100644 --- a/lib/log/src/log.c +++ b/lib/log/src/log.c @@ -14,7 +14,7 @@ static int fd_log_file = -1; static char offline_buffer[1 * 1024 * 1024]; static size_t offline_offset = 0; -static atomic_bool log_mutex_init = ATOMIC_VAR_INIT(false); +static atomic_bool log_mutex_init = false; // was ATOMIC_VAR_INIT(false) — macro removed in C23 / modern GCC static pthread_mutex_t log_mutex; static const char *log_level_names[] = {