[Webkit-unassigned] [Bug 217712] New: WeakObjCPtr.h is not safe to include in C++ source files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 14 09:37:16 PDT 2020


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

            Bug ID: 217712
           Summary: WeakObjCPtr.h is not safe to include in C++ source
                    files
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: thorton at apple.com

WeakObjCPtr.h is not safe to include in C++ source files.

Found by compiling WebKit with upstream clang.  Here's the include path:

In file included from WebKitBuild/Release/DerivedSources/WebKit2/NetworkResourceLoaderMessageReceiver.cpp:27:
In file included from Source/WebKit/NetworkProcess/NetworkResourceLoader.h:31:
In file included from Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.h:39:
In file included from Source/WebKit/Shared/ApplePay/WebPaymentCoordinatorProxy.h:37:
WebKitBuild/Release/usr/local/include/wtf/WeakObjCPtr.h:89:16: error: use of undeclared identifier 'adoptNS'
        return adoptNS(objc_loadWeakRetained(&m_weakReference));
               ^

<rdar://problem/70250667>

-- 
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/20201014/f655bb58/attachment-0001.htm>


More information about the webkit-unassigned mailing list