mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #5614
5614: Fix clang-tidy 14 mingw issues (fixes #5612) r=heinrich5991 a=def- Strangely I didn't get all of the errors. ## Checklist - [ ] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test (especially base/) or added coverage to integration test - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
commit
9a3f526cb6
|
@ -1,6 +1,11 @@
|
||||||
#if defined(CONF_OPENSSL)
|
#if defined(CONF_OPENSSL)
|
||||||
#include "hash_ctxt.h"
|
#include "hash_ctxt.h"
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
// EVP requires heap allocations, let's postpone the replacement for now
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
void sha256_init(SHA256_CTX *ctxt)
|
void sha256_init(SHA256_CTX *ctxt)
|
||||||
{
|
{
|
||||||
SHA256_Init(ctxt);
|
SHA256_Init(ctxt);
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#include <share.h>
|
#include <share.h>
|
||||||
|
|
|
@ -1965,7 +1965,7 @@ public:
|
||||||
if(pTextContainer->m_StringInfo.m_QuadBufferContainerIndex != -1)
|
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);
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue