tests/d3d12: Avoid a warning about passing a pointer to a const uninitialized object.

I've seen this with clang version 21.1.5.
This commit is contained in:
Giovanni Mascellani
2025-11-20 22:13:13 +01:00
committed by Henri Verbeet
parent 2215117d72
commit 8a0e578f64
Notes: Henri Verbeet 2025-11-25 20:41:24 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1841

View File

@@ -32539,6 +32539,7 @@ static void test_resource_allocation_info(void)
return; return;
} }
memset(&desc, 0xcc, sizeof(desc));
info = ID3D12Device_GetResourceAllocationInfo(device, 0, 0, &desc); info = ID3D12Device_GetResourceAllocationInfo(device, 0, 0, &desc);
ok(info.SizeInBytes == 0, "Got unexpected size %"PRIu64".\n", info.SizeInBytes); 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. */ /* Alignment on AMD Windows is 1, but this doesn't seem important to check. */