From e4c0741bef93f751306f854196ec72e3bc20b819 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 7 Oct 2025 14:34:41 +0200 Subject: [PATCH] basic/log-context: mark global vars as static --- src/basic/log-context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/log-context.c b/src/basic/log-context.c index fd40c055a4..27bce6f1f6 100644 --- a/src/basic/log-context.c +++ b/src/basic/log-context.c @@ -11,8 +11,8 @@ #include "strv.h" static int saved_log_context_enabled = -1; -thread_local LIST_HEAD(LogContext, _log_context) = NULL; -thread_local size_t _log_context_num_fields = 0; +static thread_local LIST_HEAD(LogContext, _log_context) = NULL; +static thread_local size_t _log_context_num_fields = 0; bool log_context_enabled(void) { int r;