fix(libkernel): return after NotImplemented in Windows shm_unlink #4270
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4270"
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 ErenYeager1836 on 2026-10-12T03:39:58Z.
What
Adds
return 0;afterNotImplemented_nid_no_patch("shm_unlink of a named object")in the
#ifdef _WIN32branch ofshm_unlink_nid_postfix, silencing the-Wreturn-typewarning on Windows. No behavior change —NotImplemented_nid_no_patchalways throws, so the return is unreachable. Follows the pattern used throughout the
codebase (libc/Export.cpp, DirectMemory/Export.cpp, Equeue.cpp, etc.) and mirrors
the APS5_DUMMY_FUN macro.
Tested
Windows. Rebuilt
libkernel—SharedMemory.cppno longer emits the-Wreturn-typewarning. Existing tests pass.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch)Depends on: none
AI-assisted: yes