[Webkit-unassigned] [Bug 262535] New: [WebTransport] Fix build of trimToValidUTF8Length1024() with -Wreturn-std-move

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 3 05:08:06 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=262535

            Bug ID: 262535
           Summary: [WebTransport] Fix build of
                    trimToValidUTF8Length1024() with -Wreturn-std-move
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: olivier.blin at softathome.com
                CC: achristensen at apple.com, youennf at gmail.com

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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231003/dcb3b55b/attachment.htm>


More information about the webkit-unassigned mailing list