From d7f4bfe063590133746b0df98db9c2e5ed1e0a93 Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Fri, 9 Jan 2026 21:28:37 +0800 Subject: [PATCH] chore: remove workaround for llvm#98823 (#8092) --- libtransmission/session-thread.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libtransmission/session-thread.cc b/libtransmission/session-thread.cc index 5306306cd..674c98548 100644 --- a/libtransmission/session-thread.cc +++ b/libtransmission/session-thread.cc @@ -101,19 +101,10 @@ int cond_wait(void* vcond, void* vlock, struct timeval const* tv) return success == std::cv_status::timeout ? 1 : 0; } -#if defined(_WIN32) && defined(__clang_analyzer__) -// See https://github.com/llvm/llvm-project/issues/98823 -#define WORKAROUND_CLANG_TIDY_GH98823 -#endif - unsigned long thread_current_id() { -#ifndef WORKAROUND_CLANG_TIDY_GH98823 thread_local auto const hashed = std::hash()(std::this_thread::get_id()); return hashed; -#else - return 0; -#endif } void init_evthreads_once()