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

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

Please sign in to comment.