From b788d6304403bf32227a23ae04415b290eb980a0 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 4 Sep 2025 13:09:05 +0100 Subject: [PATCH] refactor: Give internal linkage to global mutex The `static` keyword was removed by #8674 but I think it should be restored so that this global can't clash with anything else called `::s_mutex` elsewhere in the executable. --- src/lib/arch/ArchString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/arch/ArchString.cpp b/src/lib/arch/ArchString.cpp index bc4b24212..8487ce8f6 100644 --- a/src/lib/arch/ArchString.cpp +++ b/src/lib/arch/ArchString.cpp @@ -12,7 +12,7 @@ #include #include -std::mutex s_mutex; +static std::mutex s_mutex; // // use C library non-reentrant multibyte conversion with mutex