mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
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:
parent
31cf68c65d
commit
ef174a58a8
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue