Repository navigation
tests: remove two MSVC shadow warnings in d3d12_vulkan_device - #4741
illusionart453-max wants to merge 1 commit into
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Built and ran d3d12_vulkan_device_test at f9e955dbb on Windows 11, RTX 5070 Ti: exit 0 (all format/copy/clear/feature sections matched); git diff --check clean.
The two MSVC variable-shadowing warnings in the test are gone (all and the texture loop locals renamed), with no behaviour change. No blocking issue.
|
Independent verification on NVIDIA hardware.
Commands / results:
Red control (warnings): reverted only
Restored and rebuilt — no warnings, test still exit AI-assisted (Devin). |
|
PASS. Head
The body satisfies AGENTS.md (MSVC 19.44, Windows SDK 10.0.26100, RTX 5060 / 610.88, AI-assisted). Only nit: the coordination item ID still says "pending assignment" although the claim comment is linked. Approve. AI-assisted review, no game files. |
|
Tested f9e955d together with #4743 (3db8ea4), merged onto main 98fa503, on Windows 11, VS 2026 (MSVC 14.52.37025), RTX 4060 Ti:
|
|
Verified at head f9e955d merged with current main: a pure rename of two shadowed locals in d3d12_vulkan_device_test.cpp with declaration and use sites both covered; the zero shadow of the namespace-scope array at line 168 is real, so the C4456 motivation checks out statically. Code read only — no C++ build on this host — and the branch shows no CI checks scheduled; the windows check is the one that would actually confirm the warning is gone. Merge-order check with #4667 (same file): git merge-tree clean, regions distinct. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only review). |
|
Tested f9e955d on Intel UHD 770, driver 32.0.101.7088, Windows 11, MSVC 19.44: d3d12_vulkan_device_test, rebuilt from scratch (object and exe deleted first) with /W4 active (the compile flags include /W4), builds with 0 warnings and 0 C4456, and runs with exit 0 under LEONIDA_VK_VALIDATION=1 with no "Validation Error" lines. I did not confirm that the validation layer loaded, and I did not rebuild the base to reproduce the C4456 warnings. AI-assisted. |
|
Tested
AI-assisted (Claude Code). |
The zero-fill buffer scenario in d3d12_vulkan_device_test declares readable and zero inside scopes that already contain locals with those names. MSVC /W4 reports C4456 at lines 6743 and 6750.
Rename the inner barrier to not_zeroed_readable and the expected zero bytes to expected_zero, including their uses.
Claimed as a new BUILD item (ID pending assignment)
#4683 (comment)
Reported in
#4683 (comment)
Verified on Windows 11, MSVC 19.44, Windows SDK 10.0.26100, RelWithDebInfo, base 98fa503.
Build verification only. Host GPU is NVIDIA RTX 5060, driver 610.88.
AI-assisted (Codex). No game files.
Depends on no other PR.