[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:
parent
ce30f80d2c
commit
aa47e58f11
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user