⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268757 in webkit


Ignore:
Timestamp:
Oct 20, 2020, 1:21:07 PM (6 years ago)
Author:
don.olmstead@sony.com
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:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268746 r268757  
     12020-10-20  Don Olmstead  <don.olmstead@sony.com>
     2
     3        Fix non-c-typedef-for-linkage warning in SocketStreamHandle
     4        https://bugs.webkit.org/show_bug.cgi?id=217979
     5
     6        Reviewed by Alex Christensen.
     7
     8        The warning was because the anonymous type was not C-compatible due to a default member
     9        initializer, so remove the typedef and name the struct.
     10
     11        No new tests. No change in behavior.
     12
     13        * platform/network/SocketStreamHandle.h:
     14
    1152020-10-20  Antoine Quint  <graouts@webkit.org>
    216
  • trunk/Source/WebCore/platform/network/SocketStreamHandle.h

    r246405 r268757  
    4040class SocketStreamHandleClient;
    4141
    42 typedef struct {
     42struct SourceApplicationAuditToken {
    4343#if PLATFORM(COCOA)
    4444    RetainPtr<CFDataRef> sourceApplicationAuditData;
     
    4646    void *empty { nullptr };
    4747#endif
    48 } SourceApplicationAuditToken;
     48};
    4949
    5050class SocketStreamHandle : public ThreadSafeRefCounted<SocketStreamHandle, WTF::DestructionThread::Main> {
Note: See TracChangeset for help on using the changeset viewer.