Further clang-tidy 14 issues (fixes #5612)

This commit is contained in:
def 2022-07-11 00:48:38 +02:00 committed by Dennis Felsing
parent 1944bc7052
commit c94de9b764
3 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#include <errno.h>
#include <cerrno>
#include <io.h>
#include <process.h>
#include <share.h>

View file

@ -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)
}
}

View file

@ -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);