[core,settings] disable clang-tidy warning

we allocate a UINT32** using calloc and casting it. This allows freeing
this up with free but yields some warnings. Disable for this specific
case
This commit is contained in:
akallabeth 2024-09-28 11:15:24 +02:00
parent ce30f80d2c
commit aa47e58f11
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -401,7 +401,7 @@ static BOOL monitor_has_gaps(const rdpSettings* settings, UINT32 start, UINT32 c
static UINT32** alloc_array(size_t count)
{
// NOLINTNEXTLINE(clang-analyzer-unix.MallocSizeof)
BYTE* array = calloc(count * sizeof(uintptr_t), count * sizeof(UINT32));
UINT32** dst = (UINT32**)array;
UINT32* val = (UINT32*)(array + count * sizeof(uintptr_t));