From aa47e58f1173ac6f5c5f18831f1a5a59bd2c912f Mon Sep 17 00:00:00 2001 From: akallabeth Date: Sat, 28 Sep 2024 11:15:24 +0200 Subject: [PATCH] [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 --- libfreerdp/core/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/settings.c b/libfreerdp/core/settings.c index c3eef2d73..02c5ce826 100644 --- a/libfreerdp/core/settings.c +++ b/libfreerdp/core/settings.c @@ -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));