From: Joel Rosdahl Date: Tue, 1 Aug 2023 10:30:12 +0000 (+0200) Subject: fix: Work around GCC 12.3 bug 109241 X-Git-Tag: v4.8.3~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7159b90de1cb8340f53b76729895aa8807008a51;p=thirdparty%2Fccache.git fix: Work around GCC 12.3 bug 109241 See also #1289. (cherry picked from commit 689168c292f1ed26c5f4a3070aeb649dad7facb5) --- diff --git a/src/storage/local/LocalStorage.cpp b/src/storage/local/LocalStorage.cpp index fe423989f..988155961 100644 --- a/src/storage/local/LocalStorage.cpp +++ b/src/storage/local/LocalStorage.cpp @@ -707,7 +707,9 @@ LocalStorage::recompress(const std::optional level, auto l2_content_lock = get_level_2_content_lock(l1_index, l2_index); l2_content_lock.make_long_lived(lock_manager); if (!l2_content_lock.acquire()) { - LOG("Failed to acquire content lock for {}/{}", l1_index, l2_index); + // LOG_RAW+fmt::format instead of LOG due to GCC 12.3 bug #109241 + LOG_RAW(fmt::format( + "Failed to acquire content lock for {}/{}", l1_index, l2_index)); return; }