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 (#137)

Summary:
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: c4b0203083c496c1fac4106fb500e553f3d4b5b4
  • Loading branch information
luciang authored and facebook-github-bot committed Apr 30, 2022
1 parent 848cae9 commit 5aae8cb
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 5aae8cb

Please sign in to comment.