mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Further clang-tidy 14 issues (fixes #5612)
This commit is contained in:
parent
1944bc7052
commit
c94de9b764
|
@ -63,7 +63,7 @@
|
|||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <cerrno>
|
||||
#include <io.h>
|
||||
#include <process.h>
|
||||
#include <share.h>
|
||||
|
|
|
@ -1965,7 +1965,7 @@ public:
|
|||
if(pTextContainer->m_StringInfo.m_QuadBufferContainerIndex != -1)
|
||||
{
|
||||
dbg_msg("textrender", "Found non empty text container with index %d with %d quads", pTextContainer->m_StringInfo.m_QuadBufferContainerIndex, (int)pTextContainer->m_StringInfo.m_QuadNum);
|
||||
HasNonEmptyTextContainer = true;
|
||||
HasNonEmptyTextContainer = true; // NOLINT(clang-analyzer-deadcode.DeadStores)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ public:
|
|||
Msg7.m_pMessage = MsgCopy.m_pMessage;
|
||||
Msg7.m_Mode = MsgCopy.m_Team > 0 ? protocol7::CHAT_TEAM : protocol7::CHAT_ALL;
|
||||
Msg7.m_TargetID = -1;
|
||||
return SendPackMsgOne(&Msg7, Flags, ClientID); // NOLINT(clang-analyzer-core.StackAddressEscape)
|
||||
return SendPackMsgOne(&Msg7, Flags, ClientID);
|
||||
}
|
||||
|
||||
return SendPackMsgOne(&MsgCopy, Flags, ClientID);
|
||||
|
|
Loading…
Reference in a new issue