[PR #1146] file_system_test: build without the C4456 shadow warning (TEST-FS-C4456) #1181

Open
opened 2026-11-26 20:20:22 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • bbdb754 file_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.cpp declares const HANDLE h inside a loop that
already sits in the scope of an outer HANDLE h, which MSVC reports at /W4 as C4456. The inner handle is renamed
refused; the checks themselves are unchanged.

Tested

  • Windows 11, MSVC 14.44 (VS 2022 Build Tools), Ninja, RelWithDebInfo.
  • 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

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1146 **Author:** [@Christopher-Sundeby](https://github.com/Christopher-Sundeby) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/file-system-test-c4456` --- ### 📝 Commits (1) - [`bbdb754`](https://github.com/ubiquitarianism/leonida/commit/bbdb7543b7a0e0448cb9fced5699ccbded3c2378) file_system_test: build without the C4456 shadow warning ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/file_system_test.cpp` (+3 -3) </details> ### 📄 Description Claimed in the coordination issue as: TEST-FS-C4456 ### What and why The reserved-folder probe in `runtime/test/file_system_test.cpp` declares `const HANDLE h` inside a loop that already sits in the scope of an outer `HANDLE h`, which MSVC reports at /W4 as C4456. The inner handle is renamed `refused`; the checks themselves are unchanged. ### Tested - Windows 11, MSVC 14.44 (VS 2022 Build Tools), Ninja, RelWithDebInfo. - `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 - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1181
No description provided.