test(libSceNpCommon): cast away the vtable's const before calling a destructor #16593
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16593"
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?
Imported from boykopovar/AnyPS5. Originally posted by Gonic0 on 2026-11-07T08:10:30Z.
What
GuestNpCommonRuntime.cppdoes not compile with clang on macOS. Five call sitesreinterpret_castaconst void*vtable entry straight to a function pointer, which clang rejects as casting away qualifiers. They now go throughconst_cast<void*>, as the title id, title secret and communication id cases in the same file already do.The semaphore, mutex, condition, ring buffer and event flag destructor calls are the five sites. No behaviour changes.
Tested
macOS 27.3, Apple M5 Pro, Apple clang, x86_64 Release under Rosetta 2. Tree:
mainc2ce41cdc5with #4630, #7804 and #16591, which macOS needs to build.guest_np_common_runtime_testsfails to compile withcasts away qualifierson those lines.guest_np_common_runtimepasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T23:28:35Z.
Review: COMMENTED
Windows run of head
d6409e9ed9, merged ontomain286b14d2f7in one tree with 41 other small open PRs that touch different files. Setup: Windows 11, WinLibs GCC 15.2 r7 (x86_64-ucrt-posix-seh, the CI toolchain), Release,BUILD_TESTING=ON.guest_np_common_runtimewith--repeat until-fail:5: 5 / 5 pass.