Title: [268757] trunk/Source/WebCore
Revision
268757
Author
don.olmst...@sony.com
Date
2020-10-20 13:21:07 -0700 (Tue, 20 Oct 2020)

Log Message

Fix non-c-typedef-for-linkage warning in SocketStreamHandle
https://bugs.webkit.org/show_bug.cgi?id=217979

Reviewed by Alex Christensen.

The warning was because the anonymous type was not C-compatible due to a default member
initializer, so remove the typedef and name the struct.

No new tests. No change in behavior.

* platform/network/SocketStreamHandle.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (268756 => 268757)


--- trunk/Source/WebCore/ChangeLog	2020-10-20 20:11:16 UTC (rev 268756)
+++ trunk/Source/WebCore/ChangeLog	2020-10-20 20:21:07 UTC (rev 268757)
@@ -1,3 +1,17 @@
+2020-10-20  Don Olmstead  <don.olmst...@sony.com>
+
+        Fix non-c-typedef-for-linkage warning in SocketStreamHandle
+        https://bugs.webkit.org/show_bug.cgi?id=217979
+
+        Reviewed by Alex Christensen.
+
+        The warning was because the anonymous type was not C-compatible due to a default member
+        initializer, so remove the typedef and name the struct.
+
+        No new tests. No change in behavior.
+
+        * platform/network/SocketStreamHandle.h:
+
 2020-10-20  Antoine Quint  <grao...@webkit.org>
 
         REGRESSION(r268615): some accelerated transform tests are failing

Modified: trunk/Source/WebCore/platform/network/SocketStreamHandle.h (268756 => 268757)


--- trunk/Source/WebCore/platform/network/SocketStreamHandle.h	2020-10-20 20:11:16 UTC (rev 268756)
+++ trunk/Source/WebCore/platform/network/SocketStreamHandle.h	2020-10-20 20:21:07 UTC (rev 268757)
@@ -39,13 +39,13 @@
 struct CookieRequestHeaderFieldProxy;
 class SocketStreamHandleClient;
 
-typedef struct {
+struct SourceApplicationAuditToken {
 #if PLATFORM(COCOA)
     RetainPtr<CFDataRef> sourceApplicationAuditData;
 #else
     void *empty { nullptr };
 #endif
-} SourceApplicationAuditToken;
+};
 
 class SocketStreamHandle : public ThreadSafeRefCounted<SocketStreamHandle, WTF::DestructionThread::Main> {
 public:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to