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()'.
Pull request: https://github.com/WebKit/WebKit/pull/17904
Committed 268183@main (2e5b79e639b0): <https://commits.webkit.org/268183@main> Reviewed commits have been landed. Closing PR #17904 and removing active labels.
<rdar://problem/115769010>