Skip to content
This repository was archived by the owner on Jun 4, 2022. It is now read-only.

Commit 3d259d7

Browse files
luciangfacebook-github-bot
authored andcommitted
fix anon-struct usage that's a warning/error -Wnon-c-typedef-for-linkage (#76610)
Summary: X-link: pytorch/pytorch#76610 X-link: pytorch/gloo#328 Pull Request resolved: #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
1 parent 848cae9 commit 3d259d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fbzmq/zmq/SocketMonitor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SocketMonitor {
8888
/**
8989
* event object passed down the PAIR socket to monitor class
9090
*/
91-
using EventT = struct {
91+
struct EventT {
9292
uint16_t event;
9393
int32_t data;
9494
};

0 commit comments

Comments
 (0)