[Webkit-unassigned] [Bug 245846] New: Fix warnings in curl backend

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 29 13:32:12 PDT 2022


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

            Bug ID: 245846
           Summary: Fix warnings in curl backend
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: don.olmstead at sony.com

Clang 15 is reporting warnings in the code

C:/GitHub/WebKit/Source/WebKit/NetworkProcess/curl/WebSocketTaskCurl.cpp:158:17: error: enumeration values 'OpCodeContinuation', 'OpCodePong', and 'OpCodeInvalid' not handled in switch [-Werror,-Wswitch]
        switch (opCode) {
                ^~~~~~
C:/GitHub/WebKit/Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp:375:138: error: lambda capture 'isCrossOrigin' is not used [-Werror,-Wunused-lambda-capture]
    m_client->willPerformHTTPRedirection(WTFMove(response), WTFMove(request), [this, protectedThis = Ref { *this }, didChangeCredential, isCrossOrigin](const ResourceRequest& newRequest) {
                                                                                                                                       ~~^~~~~~~~~~~~~

Also check MSVC so we can turn warnings as errors on for WinCairo and PlayStation.

-- 
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/20220929/b6aca6d5/attachment-0001.htm>


More information about the webkit-unassigned mailing list