RESOLVED FIXED 262535
[WebTransport] Fix build of trimToValidUTF8Length1024() with -Wreturn-std-move
https://bugs.webkit.org/show_bug.cgi?id=262535
Summary [WebTransport] Fix build of trimToValidUTF8Length1024() with -Wreturn-std-move
Olivier Blin
Reported 2023-10-03 05:08:06 PDT
The following errors occurred in a developer build: /app/webkit/Source/WebCore/Modules/webtransport/WebTransport.cpp:215:16: error: local variable 'string' will be copied despite being returned by name [-Werror,-Wreturn-std-move] return string; ^~~~~~ /app/webkit/Source/WebCore/Modules/webtransport/WebTransport.cpp:215:16: note: call 'std::move' explicitly to avoid copying return string; ^~~~~~ std::move(string) /app/webkit/Source/WebCore/Modules/webtransport/WebTransport.cpp:219:20: error: local variable 'string' will be copied despite being returned by name [-Werror,-Wreturn-std-move] return string; ^~~~~~ /app/webkit/Source/WebCore/Modules/webtransport/WebTransport.cpp:219:20: note: call 'std::move' explicitly to avoid copying return string; ^~~~~~ std::move(string) /app/webkit/Source/WebCore/Modules/webtransport/WebTransport.cpp:224:20: error: local variable 'string' will be copied despite being returned by name [-Werror,-Wreturn-std-move] return string; ^~~~~~ /app/webkit/Source/WebCore/Modules/webtransport/WebTransport.cpp:224:20: note: call 'std::move' explicitly to avoid copying return string; ^~~~~~ std::move(string)
Attachments
Olivier Blin
Comment 1 2023-10-03 05:19:00 PDT
EWS
Comment 2 2023-10-04 17:55:59 PDT
Committed 268885@main (09d53ca80dff): <https://commits.webkit.org/268885@main> Reviewed commits have been landed. Closing PR #18547 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-10-04 17:57:22 PDT
Note You need to log in before you can comment on or make changes to this bug.