mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1146] file_system_test: build without the C4456 shadow warning (TEST-FS-C4456) #1181
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1181
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1146
Author: @Christopher-Sundeby
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/file-system-test-c4456📝 Commits (1)
bbdb754file_system_test: build without the C4456 shadow warning📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
runtime/test/file_system_test.cpp(+3 -3)📄 Description
Claimed in the coordination issue as: TEST-FS-C4456
What and why
The reserved-folder probe in
runtime/test/file_system_test.cppdeclaresconst HANDLE hinside a loop thatalready sits in the scope of an outer
HANDLE h, which MSVC reports at /W4 as C4456. The inner handle is renamedrefused; the checks themselves are unchanged.Tested
main(6293c1c4f):file_system_test.cpp(1291): warning C4456. With this change: builds with no warnings.file_system_test.exe: 494 checks, 0 failures.GPUs tested: n/a (CPU-only test)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.