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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Yousuke Kimoto
Pull request: https://github.com/WebKit/WebKit/pull/17904
EWS
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
<rdar://problem/115769010>