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:
bors[bot] 2022-07-27 10:45:54 +00:00 committed by GitHub
commit 9a3f526cb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,11 @@
#if defined(CONF_OPENSSL)
#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)
{
SHA256_Init(ctxt);

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