Fix TSA warnings in Clang 15 (fixes #5548)

src/engine/client/serverbrowser_http.cpp:147:1: warning: mutex 'ls.m_Lock' is still held at the end of function [-Wthread-safety-analysis]
}
^
This commit is contained in:
Dennis Felsing 2022-09-15 23:30:17 +02:00
parent 31cf68c65d
commit ef174a58a8

View file

@ -6,7 +6,7 @@
class SCOPED_CAPABILITY CLockScope
{
public:
CLockScope(LOCK Lock) ACQUIRE(Lock, m_Lock) REQUIRES(!Lock, !m_Lock) :
CLockScope(LOCK Lock) ACQUIRE(Lock, m_Lock) :
m_Lock(Lock)
{
lock_wait(m_Lock);