From 8a0e578f64e6386bad60d51718c157d083aa45cd Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 20 Nov 2025 22:13:13 +0100 Subject: [PATCH] tests/d3d12: Avoid a warning about passing a pointer to a const uninitialized object. I've seen this with clang version 21.1.5. --- tests/d3d12.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/d3d12.c b/tests/d3d12.c index e2c538e4f..5aaef4229 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -32539,6 +32539,7 @@ static void test_resource_allocation_info(void) return; } + memset(&desc, 0xcc, sizeof(desc)); info = ID3D12Device_GetResourceAllocationInfo(device, 0, 0, &desc); ok(info.SizeInBytes == 0, "Got unexpected size %"PRIu64".\n", info.SizeInBytes); /* Alignment on AMD Windows is 1, but this doesn't seem important to check. */