Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix new afxdp.h nameless struct warning #531

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions published/external/afxdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ extern "C" {
#endif

typedef union _XSK_BUFFER_ADDRESS {
#pragma warning(push)
#pragma warning(disable:4201) // nonstandard extension used: nameless struct/union
struct {
UINT64 BaseAddress : 48;
UINT64 Offset : 16;
#pragma warning(suppress:4201) // nonstandard extension used: nameless struct/union
} DUMMYUNIONNAME;
} DUMMYSTRUCTNAME;
#pragma warning(pop)
UINT64 AddressAndOffset;
} XSK_BUFFER_ADDRESS;

Expand Down
Loading