From 3d259d76008f981b5ca303cc202e1d16e72c4f1a Mon Sep 17 00:00:00 2001 From: Lucian Grijincu Date: Fri, 29 Apr 2022 20:01:51 -0700 Subject: [PATCH] fix anon-struct usage that's a warning/error -Wnon-c-typedef-for-linkage (#76610) Summary: X-link: https://github.com/pytorch/pytorch/pull/76610 X-link: https://github.com/facebookincubator/gloo/pull/328 Pull Request resolved: https://github.com/facebook/fbzmq/pull/38 X-link: https://github.com/facebook/CacheLib/pull/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 --- fbzmq/zmq/SocketMonitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbzmq/zmq/SocketMonitor.h b/fbzmq/zmq/SocketMonitor.h index e9c03d689..399b9c9f2 100644 --- a/fbzmq/zmq/SocketMonitor.h +++ b/fbzmq/zmq/SocketMonitor.h @@ -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; };