Skip to content

Commit

Permalink
fix anon-struct usage that's a warning/error -Wnon-c-typedef-for-link…
Browse files Browse the repository at this point in the history
…age (#76610)

Summary:
X-link: pytorch/pytorch#76610

X-link: facebookincubator/gloo#328

Pull Request resolved: facebookarchive#38

X-link: facebook/CacheLib#137

Fix
  error: anonymous non-C-compatible type given name for linkage purposes by alias declaration; add a tag name here [-Werror,-Wnon-c-typedef-for-linkage]

Reviewed By: philippv

Differential Revision: D36043476

fbshipit-source-id: 953e43613479fb142ea2ccf29f3d0a39402e4122
  • Loading branch information
luciang authored and facebook-github-bot committed Apr 30, 2022
1 parent 848cae9 commit 3d259d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fbzmq/zmq/SocketMonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class SocketMonitor {
/**
* event object passed down the PAIR socket to monitor class
*/
using EventT = struct {
struct EventT {
uint16_t event;
int32_t data;
};
Expand Down

0 comments on commit 3d259d7

Please sign in to comment.