Bug 217979 - Fix non-c-typedef-for-linkage warning in SocketStreamHandle
Summary: Fix non-c-typedef-for-linkage warning in SocketStreamHandle
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Don Olmstead
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-20 12:01 PDT by Don Olmstead
Modified: 2020-10-20 13:22 PDT (History)
5 users (show)

See Also:


Attachments
Patch (1.56 KB, patch)
2020-10-20 12:33 PDT, Don Olmstead
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Olmstead 2020-10-20 12:01:49 PDT
..\..\Source\WebCore\platform\network\SocketStreamHandle.h(42,15): warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
typedef struct {
              ^
               SourceApplicationAuditToken
..\..\Source\WebCore\platform\network\SocketStreamHandle.h(46,17): note: type is not C-compatible due to this default member initializer
    void *empty { nullptr };
                ^~~~~~~~~~~
..\..\Source\WebCore\platform\network\SocketStreamHandle.h(48,3): note: type is given name 'SourceApplicationAuditToken' for linkage purposes by this typedef declaration
} SourceApplicationAuditToken;
  ^
1 warning generated.
Comment 1 Don Olmstead 2020-10-20 12:33:48 PDT
Created attachment 411898 [details]
Patch
Comment 2 EWS 2020-10-20 13:21:12 PDT
Committed r268757: <https://trac.webkit.org/changeset/268757>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 411898 [details].
Comment 3 Radar WebKit Bug Importer 2020-10-20 13:22:18 PDT
<rdar://problem/70498896>