From c94de9b764bf150203612d0ee837fda3bad9f9e3 Mon Sep 17 00:00:00 2001 From: def Date: Mon, 11 Jul 2022 00:48:38 +0200 Subject: [PATCH] Further clang-tidy 14 issues (fixes #5612) --- src/base/system.cpp | 2 +- src/engine/client/text.cpp | 2 +- src/engine/server.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/system.cpp b/src/base/system.cpp index 716e9687a..2067d3d3d 100644 --- a/src/base/system.cpp +++ b/src/base/system.cpp @@ -63,7 +63,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/engine/client/text.cpp b/src/engine/client/text.cpp index c3b9e02dd..d7d54fddd 100644 --- a/src/engine/client/text.cpp +++ b/src/engine/client/text.cpp @@ -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) } } diff --git a/src/engine/server.h b/src/engine/server.h index d4de82f44..e20b6d3b5 100644 --- a/src/engine/server.h +++ b/src/engine/server.h @@ -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);