Module: vkd3d Branch: master Commit: fcd6ec33bd6bdc314cc2577bbf2e6bcec1b4c05d URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/fcd6ec33bd6bdc314cc2577bbf2e6b...
Author: Zebediah Figura zfigura@codeweavers.com Date: Sun Apr 30 17:42:05 2023 -0500
tests: Avoid shadowing "l" in test_get_copyable_footprints().
Found with -Wshadow.
---
tests/d3d12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/d3d12.c b/tests/d3d12.c index 91e91608..49e3a840 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -19893,7 +19893,7 @@ static void test_get_copyable_footprints(void) uint64_t row_sizes[10], total_size; D3D12_RESOURCE_DESC resource_desc; unsigned int sub_resource_count; - unsigned int i, j, k, l; + unsigned int i, j, k; ID3D12Device *device; UINT row_counts[10]; ULONG refcount; @@ -20090,7 +20090,7 @@ static void test_get_copyable_footprints(void) check_copyable_footprints(&resource_desc, 0, sub_resource_count, base_offsets[k], NULL, NULL, NULL, &total_size);
- for (l = 0; l < sub_resource_count; ++l) + for (unsigned int l = 0; l < sub_resource_count; ++l) { vkd3d_test_push_context("sub-resource %u", l);