[Webkit-unassigned] [Bug 261448] New: RemoteInspectorSocket.cpp: error: implicit capture of 'this' with a capture default of '=' is deprecated [-Werror, -Wdeprecated-this-capture]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 11 17:59:41 PDT 2023


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

            Bug ID: 261448
           Summary: RemoteInspectorSocket.cpp: error: implicit capture of
                    'this' with a capture default of '=' is deprecated
                    [-Werror,-Wdeprecated-this-capture]
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com

Clang 17 reports the following compiler warnings for Windows port:

FAILED: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-84c9f43f-7.cpp.obj 
D:\work\chromium\src\src\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe  [...] -c -- C:\home\webkit\gc\WebKitBuild\Debug\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-84c9f43f-7.cpp
In file included from C:\home\webkit\gc\WebKitBuild\Debug\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-84c9f43f-7.cpp:2:
C:\home\webkit\gc\Source\JavaScriptCore\inspector/remote/socket/RemoteInspectorSocket.cpp(73,25): error: implicit capture of 'this' with a capture default of '=' is deprecated [-Werror,-Wdeprecated-this-capture]
   73 |         Locker locker { m_mutex };
      |                         ^
C:\home\webkit\gc\Source\JavaScriptCore\inspector/remote/socket/RemoteInspectorSocket.cpp(72,34): note: add an explicit capture of 'this' to capture '*this' by reference
   72 |     RunLoop::current().dispatch([=] {
      |                                  ^
      |                                   , this
C:\home\webkit\gc\Source\JavaScriptCore\inspector/remote/socket/RemoteInspectorSocket.cpp(185,25): error: implicit capture of 'this' with a capture default of '=' is deprecated [-Werror,-Wdeprecated-this-capture]
  185 |         Locker locker { m_mutex };
      |                         ^
C:\home\webkit\gc\Source\JavaScriptCore\inspector/remote/socket/RemoteInspectorSocket.cpp(184,34): note: add an explicit capture of 'this' to capture '*this' by reference
  184 |     RunLoop::current().dispatch([=] {
      |                                  ^
      |                                   , this
2 errors generated.

-- 
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/20230912/be2ba9e0/attachment.htm>


More information about the webkit-unassigned mailing list