Bug 269068
| Summary: | Fix build of HTMLDocumentParserFastPath with -Wreturn-std-move | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Olivier Blin <olivier.blin> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=268057 | ||
Olivier Blin
Since 273516@main, clang debug builds on Linux fail on HTMLDocumentParserFastPath:
/app/webkit/Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:870:20:
error: local variable 'element' will be copied despite being returned by name [-Werror,-Wreturn-std-move]
return element;
^~~~~~~
/app/webkit/Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:870:20:
note: call 'std::move' explicitly to avoid copying
return element;
^~~~~~~
std::move(element)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Olivier Blin
Pull request: https://github.com/WebKit/WebKit/pull/24147
EWS
Committed 274375@main (f0f21743a4a3): <https://commits.webkit.org/274375@main>
Reviewed commits have been landed. Closing PR #24147 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/122654373>