Skip to content

xgameruntime_test: the IXSystemImpl5 check's flag no longer hides the entry-point check's (C4456) - #3576

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
etcetera-yt:xgameruntime-test-all-c4456
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
etcetera-yt:xgameruntime-test-all-c4456

Conversation

@etcetera-yt

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: new BUILD item, MSVC C4456 in runtime/test/xgameruntime_test.cpp (claim)

What and why

93e6513 added the IXSystemImpl5 inheritance check to xgameruntime_test, with a bool all flag. It hides the bool all of the GetProcAddress entry-point check at line 188, in the same function. On main f847748c, MSVC prints:

runtime\test\xgameruntime_test.cpp(400,14): warning C4456: declaration of 'all' hides previous local declaration

The inner flag is now all_inherited (3 lines, one file). Nothing else changes, so there's no change in behaviour.

Nothing is left for this item. Main's other three warnings are covered by #2852 (C4456 in d3d12_compute_test.cpp) and #2912 (C4996 in d3d12_bundle_test/d3d12_first_light_test). This PR is independent of both.

Tested

NVIDIA GeForce RTX 5060 Ti, driver 621.14, Windows 10 19045. VS 2022 Build Tools (MSVC), Vulkan SDK 1.4.363.0.

cmake -S runtime -B runtime/build
cmake --build runtime/build --config RelWithDebInfo -- -m:2
ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure
LEONIDA_VK_VALIDATION=1 ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure
main f847748c this PR 4f6b7536
build warnings 4, including this C4456 3, no C4456 in xgameruntime_test.cpp
ctest 131/132, 8 skipped same
ctest, validation on 131/132, 7 skipped, no VUIDs same
xgameruntime Passed Passed (both ways)

The failure in both is d3d12_vulkan_device (line 5101, the two committed-buffer state cases a Windows 10 host refuses; TEST-724). It is unrelated to this PR.

Not tested: a clang-cl build; other GPUs. The change is a rename, so there is no negative control beyond the warning itself, which main still prints.

Checklist

  • 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. (n/a: no translator change)

AI-assisted (Claude Code).

🤖 Generated with Claude Code

… entry-point check's (C4456)

93e6513 added the IXSystemImpl5 inheritance check with a `bool all`,
which hides the `bool all` of the GetProcAddress check at line 188;
MSVC reports C4456 at line 400. The inner flag is now all_inherited.
No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kam471

Kam471 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested 4f6b7536 on Windows 11, MSVC 19.44.35228 + Ninja, RelWithDebInfo.

  • Base file (origin/main) rebuilt with the same flags: xgameruntime_test.cpp(400): warning C4456: declaration of 'all' hides previous local declaration.
  • Head: build has no C4456, xgameruntime_test.exe -> OK (94 checks), exit 0.
  • ctest -R xgameruntime --output-on-failure -> 1/1 passed, 0.01 s.

Private build dir; runtime/build untouched. No game files.

@etcetera-yt

Copy link
Copy Markdown
Contributor Author

Thanks @Kam471 for the test run. AI-assisted (Claude Code).

@zzEmmazz

Copy link
Copy Markdown
Contributor

Tested 4f6b7536, applied alone on main f847748c: pass.
Windows 11 (26200), MSVC 14.50 (VS 2026), Ninja RelWithDebInfo. CPU only.

  • Clean build of main f847748c (scripts/build_runtime.ps1, 307 steps): 4 compiler warnings, one of them runtime\test\xgameruntime_test.cpp(400): warning C4456: declaration of 'all' hides previous local declaration.
  • With the PR: xgameruntime_test.cpp recompiles with no warning.
  • ctest -R "^xgameruntime$": passed, xgameruntime_test: OK (94 checks), including "IXSystemImpl5 answers for every interface it inherits (IXSystemImpl .. IXSystemImpl4)".

Not checked: a clang-cl build; the rest of ctest (the change is one renamed local in one test file).

@etcetera-yt

Copy link
Copy Markdown
Contributor Author

Thanks @zzEmmazz for the test run. AI-assisted (Claude Code).

@evilclanker9000

Copy link
Copy Markdown
Contributor

Tested 4f6b753 on Windows 11 (MSVC RelWithDebInfo): full runtime build, then ctest for the shim/loader tests (loader, pe_loader, loader_tls, dll_thread_calls, unimplemented_policy, startup_trace, xmem, process_cmdline, file_system, winhttp_offline, xgameruntime, run_tiny_*, allocator_proxy) — 25 of 25 passed. AI-assisted.

@etcetera-yt

Copy link
Copy Markdown
Contributor Author

Thanks @Vonsek for the build and the shim/loader test run. AI-assisted (Claude Code).

@ItsNotRexed
ItsNotRexed merged commit c45e650 into ItsNotRexed:main Nov 23, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants