fix(tests): drop const before casting the NpTitleSecret deleting destructor slot #15756
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15756"
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 imellag on 2026-11-04T12:35:10Z.
What
GuestNpCommonRuntime.cpp's NpTitleSecret case (from #13978) calls the deleting destructor throughreinterpret_cast<Destructor>(owned->vtable[1]). The vtable slots areconst void*, and clang refuses areinterpret_castthat casts awayconst, so the test file stops the macOS build:The slot is now taken through
const_cast<void*>first, as the other vtable calls in the same file already do (line 475 and the stream reader and writer cases).Tested
macOS 27.2, Apple M4 Pro, x86-64 Release under Rosetta 2, in the support branch
support/macos-boot-1103merged withmainb11c7bf84f(the open macOS port PRs #7631, #7804, #4630, #11437 and local build fixes), with #15700 and #15755 applied. Without this commit the full build stops at line 531; with it the full build goes through, andctest -R '^(guest_appcontent|guest_np_common_rtc|guest_np_common_state_predicates)'passes 9 of 9.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pymerged the 11 PRs sharing the file without overlap; of the three it could not compare, #13270 and #13486 add this same line, and #12852 adds anothervtable[1]call on a different object.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 file.mdfiles or images added to the repository (attach them to this PR)Pull request closed