Bug 261725

Summary: [PlayStation][Debug] Build fix after 268047@main
Product: WebKit Reporter: Yousuke Kimoto <Yousuke.Kimoto>
Component: WebKit Misc.Assignee: Yousuke Kimoto <Yousuke.Kimoto>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Yousuke Kimoto
Reported 2023-09-19 01:27:44 PDT
With "debug" build, an "unused function" was detected as follows: 19>ThreadingPOSIX.cpp 19>Source\WTF\wtf\posix\ThreadingPOSIX.cpp(268,12): error : unused function 'schedPolicy' [-Werror,-Wunused-function] 19>static int schedPolicy(Thread::SchedulingPolicy schedulingPolicy) https://github.com/WebKit/WebKit/commit/3468951fe890ae71911f72a444617be38c39c14f added schedPolicy(), which seems to need to be defined with HAVE_SCHEDULING_POLICIES because the caller is implemented with HAVE(SCHEDULING_POLICIES). >#if HAVE(SCHEDULING_POLICIES) > pthread_attr_setschedpolicy(&attr, schedPolicy(schedulingPolicy)); >#endif To fix this build break, adding a macro condition for 'schedPolicy()'.
Attachments
Yousuke Kimoto
Comment 1 2023-09-19 02:17:44 PDT
EWS
Comment 2 2023-09-19 23:55:48 PDT
Committed 268183@main (2e5b79e639b0): <https://commits.webkit.org/268183@main> Reviewed commits have been landed. Closing PR #17904 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-09-19 23:56:17 PDT
Note You need to log in before you can comment on or make changes to this bug.